Struct phf::map::Map [−][src]
pub struct Map<K: 'static, V: 'static> { /* fields omitted */ }
Expand description
An immutable map constructed at compile time.
Note
The fields of this struct are public so that they may be initialized by the
phf_map!
macro and code generation. They are subject to change at any
time and should never be accessed directly.
Implementations
Determines if key
is in the Map
.
Returns a reference to the value that key
maps to.
Returns a reference to the map’s internal static instance of the given key.
This can be useful for interning schemes.
Like get
, but returns both the key and the value.
Returns an iterator over the key/value pairs in the map.
Entries are returned in an arbitrary but fixed order.
Returns an iterator over the keys in the map.
Keys are returned in an arbitrary but fixed order.