Struct phf::set::Set

source · []
pub struct Set<T: 'static> { /* private fields */ }
Expand description

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.

Implementations

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.

Returns an iterator over the values in the set.

Values are returned in an arbitrary but fixed order.

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

Formats the value using the given formatter. Read more
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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.