Skip to main content

FixedHasher

Type Alias FixedHasher 

Source
type FixedHasher = FixedState;
Expand description

The hasher Hashed computes its words with.

Hashbrown’s own hasher, in its fixed-seed state: the crate’s hash tables are hashbrown’s and hash with foldhash, so a word stored this way is already in the shape those tables mix, and independently built hashers agree on the hash of equal values. Hashed’s equality reads that word, so a hasher seeded per instance — hashbrown::DefaultHashBuilder, whose default is a fresh RandomState, say — would make equal values compare unequal.

Aliased Type§

struct FixedHasher { /* private fields */ }