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
sourceimpl<'c, V> EntryRemovableOccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
impl<'c, V> EntryRemovableOccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
type Vacant = DummyLinkedListVacantEntry<'c, V>
fn recover_removed_entry(removed: Self::Removed) -> DummyLinkedListEntry<'c, V>
sourceimpl<'c, V> KeyedOccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
impl<'c, V> KeyedOccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
type BorrowedKey = usize
sourcefn get_pair<'e>(&'e self) -> (&'e Self::Key, &'e Self::Value) where
'c: 'e,
fn get_pair<'e>(&'e self) -> (&'e Self::Key, &'e Self::Value) where
'c: 'e,
get the key value pair, immutably borrowed
sourceimpl<'c, V> NextOccupiedFromOccupied<'c> for DummyLinkedListOccupiedEntry<'c, V>
impl<'c, V> NextOccupiedFromOccupied<'c> for DummyLinkedListOccupiedEntry<'c, V>
sourcefn get_next_occupied(self) -> Option<Self>
fn get_next_occupied(self) -> Option<Self>
get the next occupied entry after this one.
sourceimpl<'c, V> OccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
impl<'c, V> OccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
type Value = V
type Value = V
the type of the values in the collection
sourcefn get_value<'e>(&'e self) -> &'e Self::Value where
'c: 'e,
fn get_value<'e>(&'e self) -> &'e Self::Value where
'c: 'e,
get the value, immutably borrowed.
sourcefn get_value_mut<'e>(&'e mut self) -> &mut Self::Value where
'c: 'e,
fn get_value_mut<'e>(&'e mut self) -> &mut Self::Value where
'c: 'e,
get the value, mutably borrowed.
sourcefn into_value_mut<'e>(self) -> &'c mut Self::Value
fn into_value_mut<'e>(self) -> &'c mut Self::Value
convert the entry into a mutable to the value.
sourcefn replace_value<'e>(&'e mut self, value: Self::Value) -> Self::Value where
'c: 'e,
fn replace_value<'e>(&'e mut self, value: Self::Value) -> Self::Value where
'c: 'e,
replace the value in the entry, returning the old value.
sourceimpl<'c, V> PrevOccupiedFromOccupied<'c> for DummyLinkedListOccupiedEntry<'c, V>
impl<'c, V> PrevOccupiedFromOccupied<'c> for DummyLinkedListOccupiedEntry<'c, V>
sourcefn get_prev_occupied(self) -> Option<Self>
fn get_prev_occupied(self) -> Option<Self>
get the previous occupied entry after this one.
sourceimpl<'c, V> RemovableOccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
impl<'c, V> RemovableOccupiedEntry<'c> for DummyLinkedListOccupiedEntry<'c, V>
type Removed = DummyLinkedListEntry<'c, V>
type Removed = DummyLinkedListEntry<'c, V>
The type returned when removing the OccupiedEntry
sourcefn remove(self) -> (V, Self::Removed)
fn remove(self) -> (V, Self::Removed)
remove this entry from the collection, converting the entry into a Self::Removed and returning the value that was there. Read more
sourcefn remove_value(self) -> Self::Value
fn remove_value(self) -> Self::Value
remove this entry from the collection, consuming the entry and returning the value that was there. Read more
Auto Trait Implementations
impl<'c, V> RefUnwindSafe for DummyLinkedListOccupiedEntry<'c, V> where
V: RefUnwindSafe,
impl<'c, V> Send for DummyLinkedListOccupiedEntry<'c, V> where
V: Send,
impl<'c, V> Sync for DummyLinkedListOccupiedEntry<'c, V> where
V: Sync,
impl<'c, V> Unpin for DummyLinkedListOccupiedEntry<'c, V>
impl<'c, V> !UnwindSafe for DummyLinkedListOccupiedEntry<'c, V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more