Struct comlib_common::MiniMap [−][src]
pub struct MiniMap<K, V> { /* fields omitted */ }Expand description
Map data structure optimized for small number of elements.
The API is modelled after BTreeMap and HashMap. Implements [Entry API] for easier access and modification of
the map, modelled after [Standard library Entry API].
[Entry API]: [Standard library Entry API]: https://doc.rust-lang.org/std/collections/index.html#entries
Implementations
Inserts the given value at the given key.
Returns the previous value stored at the key, if one exists.
Returns a reference to a value corresponding to the key.
Returns a mutable reference to a value corresponding to the key.
Turns the map into an ordered vector of key-value pairs.
Trait Implementations
Auto Trait Implementations
impl<K, V> RefUnwindSafe for MiniMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> UnwindSafe for MiniMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more