Sha256: dbbb4f8b845cae15253e40be869102bd37c8809c190eead556a6de5521f34db7

Contents?: true

Size: 364 Bytes

Versions: 172

Compression:

Stored size: 364 Bytes

Contents

## Rust Traits for .to_string()

Did you implement .to_string() for the Clock struct?

If so, try implementing the
[Display trait](https://doc.rust-lang.org/std/fmt/trait.Display.html) for Clock instead.

Traits allow for a common way to implement functionality for various types.

For additional learning, how would you implement String::from for the Clock type?

Version data entries

172 entries across 172 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.138 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.137 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.136 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.135 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.134 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.133 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.132 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.131 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.130 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.129 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.128 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.127 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.126 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.125 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.124 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.123 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.122 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.121 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.120 tracks/rust/exercises/clock/.meta/hints.md