Skip to main content

HashSet

Type Alias HashSet 

Source
pub type HashSet<'arena, T, A, S = DefaultHashBuilder> = HashSet<T, S, &'arena A>;
Expand description

A hash set whose elements live in an arena. See HashMap for construction.

Aliased Type§

pub struct HashSet<'arena, T, A, S = DefaultHashBuilder> { /* private fields */ }

Trait Implementations§

Source§

impl<'arena, T, A, S> FromIteratorIn<T> for HashSet<'arena, T, A, S>
where T: Eq + Hash, S: BuildHasher + Default, A: Arena,

Source§

type Alloc = &'arena A

The allocator handle the collection is built into (e.g. &'arena A).
Source§

fn from_iter_in<I>(iter: I, alloc: Self::Alloc) -> Self
where I: IntoIterator<Item = T>,

Builds Self from iter, allocating into alloc.