Expand description
An implementation of a 64-bit DualHashKey.
For use with hierarchical ordered collections, to quickly find subkeys and permit range queries.
Modules§
- const_
fnv1a_ hash - Re-export of the fnv1a hasher crate.
Used to construct theDualHashKeyfrom&strand&[u8]inputs. - nohash_
hasher - Re-export of the no-hash hasher crate.
Used to mark theDualHashKeyasnohash_hasher::IsEnabled.
Structs§
- Dual
Hash Key - A 64-bit key made of two hashes, whose raw value is never zero.
Constants§
- HIGH_
MASK - A mask for the high-half of a DualHashKey.
- HIGH_
SHIFT - The offset of the high-half in a DualHashKey.
- LOW_
MASK - A mask for the low-half of a DualHashKey.
- MAX
- The highest possible DualHashKey.
- MIN
- The lowest possible DualHashKey.
Functions§
- fnv1a_
hash_ 32_ empty_ is_ zero - A wrapper around
const_fnv1a_hash::fnv1a_hash_32that returns0for empty slices, instead of811C9DC5. - fnv1a_
hash_ str_ 32_ empty_ is_ zero - A wrapper around
const_fnv1a_hash::fnv1a_hash_str_32that returns0for empty strings, instead of811C9DC5.