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.


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);


Aliased Type§

struct IntMap<K, V> {
    base: HashMap<K, V, BuildHasherDefault<NoHashHasher<K>>>,


§base: HashMap<K, V, BuildHasherDefault<NoHashHasher<K>>>