Type Alias nohash_hasher::IntSet

source ·
pub type IntSet<T> = HashSet<T, BuildNoHashHasher<T>>;
Expand description

A HashSet of integers, using NoHashHasher to perform no hashing at all.

§Examples

See IsEnabled for use with custom types.

use nohash_hasher::IntSet;

let mut m = IntSet::default();

m.insert(0u32);
m.insert(1u32);

assert!(m.contains(&0));
assert!(m.contains(&1));

Aliased Type§

struct IntSet<T> { /* private fields */ }