[][src]Struct phf::Set

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]

Returns the number of elements in the Set.

Returns true if the Set contains no elements.

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

This can be useful for interning schemes.

Returns true if value is in the Set.

Important traits for Iter<'a, T>

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]

Returns true if other shares no elements with self.

Returns true if other contains all values in self.

Returns true if self contains all values in other.

Trait Implementations

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?

Important traits for Iter<'a, T>

Creates an iterator from a value. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Set<T> where
    T: Send + Sync

impl<T> Sync for Set<T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more