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

A view into a single entry in a IntMap, which may either be vacant or occupied.

The entry can be constructed by calling IntMap::entry with a key. It allows inspection and in-place manipulation of its value without repeated lookups.

Variants

Occupied(OccupiedEntry<'a, V>)

The entry is occupied.

Vacant(VacantEntry<'a, V>)

The entry is vacant.

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.