pub struct OccupiedEntry<'a, K, V, const N: usize> { /* private fields */ }
Expand description

An occupied entry which can be manipulated

Implementations

Gets a reference to the key that this entity corresponds to

source

pub fn remove_entry(self) -> (K, V)

Removes this entry from the map and yields its corresponding key and value

Gets a reference to the value associated with this entry

Gets a mutable reference to the value associated with this entry

Consumes this entry and yields a reference to the underlying value

Overwrites the underlying map’s value with this entry’s value

Removes this entry from the map and yields its value

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.