Enum dashmap::mapref::entry::Entry[][src]

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

Variants

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

Tuple Fields

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

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

Tuple Fields

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

Implementations

Apply a function to the stored value if it exists.

Get the key of the entry.

Into the key of the entry.

Return a mutable reference to the element if it exists, otherwise insert the default and return a mutable reference to that.

Return a mutable reference to the element if it exists, otherwise a provided value and return a mutable reference to that.

Return a mutable reference to the element if it exists, otherwise insert the result of a provided function and return a mutable reference to that.

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.