pub struct DummyLinkedListOccupiedEntry<'c, V> { /* private fields */ }
Expand description

Occupied entry of a LinkedList.

This entry can be used to read the index, mutate the value, and remove. removing this entry gives an occupied entry representing the item that was to the right. if there was no item to the right, you get a vacant entry representing the end.

Trait Implementations

the type of the keys in the collection

get the key value pair, immutably borrowed

get the key value pair. the key is immutably borrowed, and the value immutably. Read more

convert the entry into key value pair. the key is immutably borrowed, and the value immutably. Read more

get the next occupied entry after this one.

the type of the values in the collection

get the value, immutably borrowed.

get the value, mutably borrowed.

convert the entry into a mutable to the value.

replace the value in the entry, returning the old value.

get the previous occupied entry after this one.

The type returned when removing the OccupiedEntry

remove this entry from the collection, converting the entry into a Self::Removed and returning the value that was there. Read more

remove this entry from the collection, consuming the entry and returning the value that was there. Read more

remove this entry, returning a value and a vacant entry.

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.