Type Definition nohash_hasher::BuildNoHashHasher
source · [−]pub type BuildNoHashHasher<T> = BuildHasherDefault<NoHashHasher<T>>;
Expand description
An alias for BuildHasherDefault
for use with NoHashHasher
.
Examples
See also IntMap
and IntSet
for some easier usage examples.
use nohash_hasher::BuildNoHashHasher;
use std::collections::HashMap;
let mut m: HashMap::<u8, char, BuildNoHashHasher<u8>> =
HashMap::with_capacity_and_hasher(2, BuildNoHashHasher::default());
m.insert(0, 'a');
m.insert(1, 'b');
assert_eq!(Some(&'a'), m.get(&0));
assert_eq!(Some(&'b'), m.get(&1));