pub enum Entry<'a, K, V, const N: usize> {
    Occupied(OccupiedEntry<'a, K, V, N>),
    Vacant(VacantEntry<'a, K, V, N>),
}
Expand description

A view into an entry in the map

Variants

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

The entry corresponding to the key K exists in the map

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

The entry corresponding to the key K does not exist in the map

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.