Type Definition identity_hash::IntSet
source · pub type IntSet<T> = HashSet<T, BuildIdentityHasher<T>>;
Expand description
A HashSet
of integers, using IdentityHasher
to perform no hashing at all.
Examples
See IdentityHashable
for use with custom types.
use identity_hash::IntSet;
let mut m = IntSet::default();
m.insert(0u32);
m.insert(1u32);
assert!(m.contains(&0));
assert!(m.contains(&1));