Enum imbl::ordmap::Entry [−][src]
pub enum Entry<'a, K, V> where
K: Ord + Clone,
V: Clone, { Occupied(OccupiedEntry<'a, K, V>), Vacant(VacantEntry<'a, K, V>), }
Expand description
A handle for a key and its associated value.
Variants
An entry which exists in the map.
Tuple Fields of Occupied
0: OccupiedEntry<'a, K, V>An entry which doesn’t exist in the map.
Tuple Fields of Vacant
0: VacantEntry<'a, K, V>Implementations
Insert the default value provided if there was no value already, and return a mutable reference to the value.
Insert the default value from the provided function if there was no value already, and return a mutable reference to the value.
Insert a default value if there was no value already, and return a mutable reference to the value.
Call the provided function to modify the value if the value exists.