Glossary: Data Structures and Algorithms in Rust
Trait
Also written: traits
A set of methods a type offers, such as Hash and Hasher, which you import with use to call their methods. A trait bound requires that a type has it.
Glossary: Data Structures and Algorithms in Rust
Also written: traits
A set of methods a type offers, such as Hash and Hasher, which you import with use to call their methods. A trait bound requires that a type has it.