pub type IntMap<K, V> = HashMap<K, V, BuildIntHasher<K>>;Available on crate feature
std only.Expand description
A HashMap with an integer domain, using IntHasher to perform no hashing at all.
§Examples
See IsEnabled for use with custom types.
use integer_hasher::IntMap;
let mut m: IntMap<u32, bool> = IntMap::default();
m.insert(0, false);
m.insert(1, true);
assert!(m.contains_key(&0));
assert!(m.contains_key(&1));Aliased Type§
pub struct IntMap<K, V> { /* private fields */ }