Struct phf_mut::Set [] [src]

pub struct Set<H> { /* fields omitted */ }

A mutable, perfectly-hashed set. Note that a small domain is recommended. For sparse sets, you might prefer std::collections::HashSet.

Methods

impl<H: PerfectHash> Set<H>
[src]

Create a new, empty set.

Insert a key into the set, so that contains for an equal key returns true in the future. Returns whether this key already was in the set.

Erases a key from the set, so that contains for an equal key returns false in the future. Returns whether this key already was in the set.

Returns whether the key is in the set.

impl<H: HashInverse> Set<H>
[src]

Create an iterator over the contained keys.

Trait Implementations

impl<'a, H: HashInverse> IntoIterator for &'a Set<H>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<H: PerfectHash + Default> Default for Set<H>
[src]

Returns the "default value" for a type. Read more

impl<H: Clone> Clone for Set<H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more