Skip to content

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.

Where the book teaches it

Related terms

HashablederiveOrdering