Expand description
A custom hasher for Ident keys with precomputed hashes.
IdentBuildHasher creates IdentHashers that handle two hash paths:
Ident::hash()— writes a precomputedu64viawrite_u64str::hash()— writes bytes viawrite, then computes hash data
Both paths are normalized to the same final state so Equivalent<Ident> for str lookups
always match Ident-keyed inserts.
Structs§
- Ident
Build Hasher - A
BuildHasherforIdent-keyed hash maps. - Ident
Hasher - A
Hasherthat handles bothIdent(precomputed) andstr(computed) hash paths.
Functions§
- ident_
hash - Compute a fast, high-quality hash of identifier bytes.
- pack_
len_ hash - Pack length and hash into a single
u64.