Struct ritelinked::linked_hash_map::OccupiedEntry[][src]

pub struct OccupiedEntry<'a, K, V> { /* fields omitted */ }

Implementations

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

Replaces this entry’s value with the provided value.

Similarly to LinkedHashMap::insert, this moves the existing entry to the back of the internal linked list.

pub fn insert_entry(self, value: V) -> (K, V)

Similar to OccupiedEntry::replace_entry, but does move the entry to the back of the internal linked list.

pub fn replace_entry(self, value: V) -> (K, V)

Replaces the entry’s key with the key provided to LinkedHashMap::entry, and replaces the entry’s value with the given value parameter.

Does not move the entry to the back of the internal linked list.

Replaces this entry’s key with the key provided to LinkedHashMap::entry.

Does not move the entry to the back of the internal linked list.

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.