pub type RapidBuildHasher = BuildHasherDefault<RapidHasher>;
Expand description
A std::hash::BuildHasher trait compatible hasher that uses the RapidHasher algorithm.
This is an alias for std::hash::BuildHasherDefault<RapidHasher>
with a static seed.
See RapidInlineHasher for an #[inline(always)]
version of this hasher, which can deliver
speed improvements of around 30% when hashing complex objects.
See crate::RapidRandomState can be used instead for a std::hash::BuildHasher that initialises with a random seed.
§Example
use std::collections::HashMap;
use std::hash::Hasher;
use rapidhash::RapidBuildHasher;
let mut map = HashMap::with_hasher(RapidBuildHasher::default());
map.insert(42, "the answer");
Aliased Type§
pub struct RapidBuildHasher(/* private fields */);