pub type BuildIntHasher<T> = BuildHasherDefault<IntHasher<T>>;Expand description
An alias for BuildHasherDefault for use with IntHasher.
§Examples
See also IntMap and IntSet for some easier usage examples.
use integer_hasher::BuildIntHasher;
use std::collections::HashMap;
let mut m: HashMap::<u8, char, BuildIntHasher<u8>> =
HashMap::with_capacity_and_hasher(2, BuildIntHasher::default());
m.insert(0, 'a');
m.insert(1, 'b');
assert_eq!(Some(&'a'), m.get(&0));
assert_eq!(Some(&'b'), m.get(&1));Aliased Type§
pub struct BuildIntHasher<T>(/* private fields */);