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.98 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.97 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.96 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.95 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.94 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.93 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.92 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.91 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.90 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.89 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.88 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.87 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.86 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.85 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.84 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.83 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.82 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.81 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.80 tracks/rust/exercises/clock/.meta/hints.md
trackler-2.2.1.79 tracks/rust/exercises/clock/.meta/hints.md