Crate dualhashkey

Crate dualhashkey 

Source
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 the DualHashKey from &str and &[u8] inputs.
nohash_hasher
Re-export of the no-hash hasher crate.
Used to mark the DualHashKey as nohash_hasher::IsEnabled.

Structs§

DualHashKey
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_32 that returns 0 for empty slices, instead of 811C9DC5.
fnv1a_hash_str_32_empty_is_zero
A wrapper around const_fnv1a_hash::fnv1a_hash_str_32 that returns 0 for empty strings, instead of 811C9DC5.