Skip to content

Glossary: Data Structures and Algorithms in Rust

Hash function

Also written: hasher, DefaultHasher, hash

A function that turns any key into a whole number, which the map uses to pick a bucket. Equal keys must always give the same number.

Where the book teaches it

Related terms

BucketHashableHash map