Enum linear_map::Entry [] [src]

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

A view into a single entry in a LinearMap.

See LinearMap::entry for details.

Variants

An occupied entry.

A vacant entry.

Methods

impl<'a, K, V> Entry<'a, K, V>
[src]

Ensures that the entry is occupied by inserting the given value if it is vacant.

Returns a mutable reference to the entry's value.

Ensures that the entry is occupied by inserting the the result of the given function if it is vacant.

Returns a mutable reference to the entry's value.