Struct phf::Set [] [src]

pub struct Set<T: 'static> { /* fields omitted */ }

An immutable set constructed at compile time.

Note

The fields of this struct are public so that they may be initialized by the phf_set! macro and code generation. They are subject to change at any time and should never be accessed directly.

Methods

impl<T> Set<T>
[src]

[src]

Returns the number of elements in the Set.

[src]

Returns true if the Set contains no elements.

[src]

Returns a reference to the set's internal static instance of the given key.

This can be useful for interning schemes.

[src]

Returns true if value is in the Set.

[src]

Returns an iterator over the values in the set.

Values are returned in an arbitrary but fixed order.

impl<T> Set<T> where
    T: Eq + PhfHash
[src]

[src]

Returns true if other shares no elements with self.

[src]

Returns true if other contains all values in self.

[src]

Returns true if self contains all values in other.

Trait Implementations

impl<T> Debug for Set<T> where
    T: Debug
[src]

[src]

Formats the value using the given formatter.

impl<'a, T> IntoIterator for &'a Set<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more