Enum ritelinked::linked_hash_map::Entry[][src]

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

Variants

Occupied

Tuple Fields of Occupied

0: OccupiedEntry<'a, K, V>
Vacant

Tuple Fields of Vacant

0: VacantEntry<'a, K, V, S>

Implementations

If this entry is vacant, inserts a new entry with the given value and returns a reference to it.

If this entry is occupied, this method moves the occupied entry to the back of the internal linked list and returns a reference to the existing value.

Similar to Entry::or_insert, but accepts a function to construct a new value if this entry is vacant.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.