Implement a clock that handles times without dates.

You should be able to add and subtract minutes to it.

Two clocks that represent the same time should be equal to each other.

You will also need to implement .to_string() for the Clock struct. We will be using this to display the Clock's state. You can either do it via implementing it directly or using the Display trait.

Last updated 22 October 2021
Edit via GitHub The link opens in a new window or tab
Rust Exercism

Ready to start Clock?

Sign up to Exercism to learn and master Rust with 11 concepts, 102 exercises, and real human mentoring, all for free.