type IntMap<K, V> = HashMap<K, V, BuildNoHashHasher<K>>;
A HashMap
with an integer domain, using NoHashHasher
to perform no hashing at all.
See IsEnabled
for use with custom types.
use nohash::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));