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.180 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.179 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.178 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.177 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.176 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.175 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.174 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.173 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.172 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.171 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.170 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.169 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.167 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.166 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.165 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.164 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.163 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.162 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.161 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.160 tracks/rust/exercises/clock/.meta/hints.md