diff options
Diffstat (limited to 'exercises/traits')
| -rw-r--r-- | exercises/traits/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/traits/README.md b/exercises/traits/README.md index de67acd..ac87c64 100644 --- a/exercises/traits/README.md +++ b/exercises/traits/README.md @@ -7,13 +7,13 @@ Data types can implement traits. To do so, the methods making up the trait are d In this way, traits are somewhat similar to Java interfaces and C++ abstract classes. Some additional common Rust traits include: + - `Clone` (the `clone` method) - `Display` (which allows formatted display via `{}`) - `Debug` (which allows formatted display via `{:?}`) Because traits indicate shared behavior between data types, they are useful when writing generics. - ## Further information - [Traits](https://doc.rust-lang.org/book/ch10-02-traits.html) |
