logos.mem.collections.set
Module mem · package logos-mem
Types
structHashSet
struct HashSet
Unordered set of unique keys, backed by HashMap<K, u8>.
Fields
inner: HashMap<K, u8>
structHashSetIter
struct HashSetIter
Iterator over a HashSet’s elements, yielding &K.
Implements: Iterator
Fields
inner: HashMapKeys<K, u8>
Functions
fnhashset_new
fn hashset_new() -> HashSet<K>
Creates an empty HashSet with capacity 16.
fnhashset_with_capacity
fn hashset_with_capacity(cap_hint: i64) -> HashSet<K>
Creates an empty HashSet with cap_hint rounded up to a power of two (minimum 8).