Type Alias nohash_hasher::IntMap

source ·
pub type IntMap<K, V> = HashMap<K, V, BuildNoHashHasher<K>>;
Expand description

A HashMap with an integer domain, using NoHashHasher to perform no hashing at all.

Examples

See IsEnabled for use with custom types.

use nohash_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§

struct IntMap<K, V> { /* private fields */ }