Skip to content

Glossary: Data Structures and Algorithms in Rust

Hashable

Also written: Hash and Eq, Hash, Eq

A type that can be a HashMap key or HashSet item because it implements Hash and Eq. Strings, integers, tuples and Vecs of them qualify, but f64 does not because NaN isn't equal to itself.

Where the book teaches it

Related terms

Hash functionderiveNaN