Module hash

Source
Expand description

Provides replacements for std::hash items using foldhash.

Also provides some additional items beyond the standard library.

Structsยง

DefaultHasher
A Hasher instance implementing foldhash, optimized for speed.
FixedHasher
Deterministic hasher based upon a random but fixed state.
FixedState
A BuildHasher for fast::FoldHasher that always has the same fixed seed.
Hashed
A pre-hashed value of a specific type. Pre-hashing enables memoization of hashes that are expensive to compute.
NoOpHash
BuildHasher for types that already contain a high-quality hash.
PassHash
A BuildHasher that results in a PassHasher.
PassHasher
A no-op hash that only works on u64s. Will panic if attempting to hash a type containing non-u64 fields.
RandomState
A BuildHasher for fast::FoldHasher that is randomly initialized.