pub type IntHashMap<K, V> = HashMap<K, V, BuildIntHasher<K>>;Available on crate features
msg or queue only.Expand description
IntHashMap for integer HashMap
use prosa_utils::hash::{BuildIntHasher, IntHashMap};
let mut int_hashmap: IntHashMap<i16, String> = IntHashMap::with_capacity_and_hasher(1, BuildIntHasher::default());
assert!(int_hashmap.insert(2, "test2".to_string()).is_none());
assert!(int_hashmap.insert(3, "test3".to_string()).is_none());
assert!(int_hashmap.capacity() >= 2);Aliased Typeยง
pub struct IntHashMap<K, V> { /* private fields */ }