Struct in_place::implementations::slice::OccupiedMutSliceEntry
source · [−]pub struct OccupiedMutSliceEntry<'c, V> { /* private fields */ }
Trait Implementations
sourceimpl<'c, V> IntoCollectionMut<'c> for OccupiedMutSliceEntry<'c, V>
impl<'c, V> IntoCollectionMut<'c> for OccupiedMutSliceEntry<'c, V>
type Collection = [V]
fn into_collection_mut(self) -> &'c mut Self::Collection
sourceimpl<'c, V> KeyedOccupiedEntry<'c> for OccupiedMutSliceEntry<'c, V>
impl<'c, V> KeyedOccupiedEntry<'c> for OccupiedMutSliceEntry<'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 OccupiedMutSliceEntry<'c, V>
impl<'c, V> NextOccupiedFromOccupied<'c> for OccupiedMutSliceEntry<'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 OccupiedMutSliceEntry<'c, V>
impl<'c, V> OccupiedEntry<'c> for OccupiedMutSliceEntry<'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 OccupiedMutSliceEntry<'c, V>
impl<'c, V> PrevOccupiedFromOccupied<'c> for OccupiedMutSliceEntry<'c, V>
sourcefn get_prev_occupied(self) -> Option<Self>
fn get_prev_occupied(self) -> Option<Self>
get the previous occupied entry after this one.
Auto Trait Implementations
impl<'c, V> RefUnwindSafe for OccupiedMutSliceEntry<'c, V> where
V: RefUnwindSafe,
impl<'c, V> Send for OccupiedMutSliceEntry<'c, V> where
V: Send,
impl<'c, V> Sync for OccupiedMutSliceEntry<'c, V> where
V: Sync,
impl<'c, V> Unpin for OccupiedMutSliceEntry<'c, V>
impl<'c, V> !UnwindSafe for OccupiedMutSliceEntry<'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