pub type MapEntry<'a, K, V> = Entry<'a, K, V>;
Expand description
A view into a single entry in a map, which may either be vacant or occupied.
This is constructed from the entry
method on BTreeMap
or IndexMap
,
depending on whether the preserve_order
feature flag is set.
Aliased Type§
enum MapEntry<'a, K, V> {
Vacant(VacantEntry<'a, K, V>),
Occupied(OccupiedEntry<'a, K, V>),
}
Variants§
Vacant(VacantEntry<'a, K, V>)
A vacant entry.
Occupied(OccupiedEntry<'a, K, V>)
An occupied entry.