Struct phf::OrderedSet [−][src]
pub struct OrderedSet<T: 'static> { /* fields omitted */ }
Expand description
An order-preserving immutable set constructed at compile time.
Unlike a Set
, iteration order is guaranteed to match the definition
order.
Note
The fields of this struct are public so that they may be initialized by the
phf_ordered_set!
macro and code generation. They are subject to change at
any time and should never be accessed directly.
Implementations
Returns a reference to the set’s internal static instance of the given key.
This can be useful for interning schemes.
Returns the index of the key within the list used to initialize the ordered set.
Returns a reference to the key at an index
within the list used to initialize the ordered set. See .get_index(key)
.
Returns true if value
is in the OrderedSet
.
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
.