schemars

Type Alias MapEntry

source
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§

§1.0.0

Vacant(VacantEntry<'a, K, V>)

A vacant entry.

§1.0.0

Occupied(OccupiedEntry<'a, K, V>)

An occupied entry.