Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 845 Bytes

README.zh.md

File metadata and controls

26 lines (15 loc) · 845 Bytes

时钟(Clock)

实现一个处理没有日期的时间的 clock.

您应该可以添加和减去,分钟数.

代表相同时间的两个时钟应该彼此相等.

具有.to_string()的 Rust Traits

你为 Clock 结构实现了.to_string()吗?

如果是这样,请尝试为 Clock 实现Display trait(特征)

特征为各种类型的功能实现,提供了通用方法.

对于其他学习, 可以试试为 Clock 类型实现 String::from?

资源

与 Erin Drummond 的配对会议https://twitter.com/ebdrummond