Struct in_place::implementations::maybe_uninit::MaybeUninitEntry
source · [−]pub struct MaybeUninitEntry<'c, T, const OCCUPIED: bool>(_);
Trait Implementations
sourceimpl<'c, T> EntryRemovableOccupiedEntry<'c> for MaybeUninitEntry<'c, T, true>
impl<'c, T> EntryRemovableOccupiedEntry<'c> for MaybeUninitEntry<'c, T, true>
type Vacant = MaybeUninitEntry<'c, T, false>
fn recover_removed_entry(removed: Self::Removed) -> Entry<Self, Self::Vacant>
sourceimpl<'c, T> OccupiedEntry<'c> for MaybeUninitEntry<'c, T, true>
impl<'c, T> OccupiedEntry<'c> for MaybeUninitEntry<'c, T, true>
type Value = T
type Value = T
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, T> RemovableOccupiedEntry<'c> for MaybeUninitEntry<'c, T, true>
impl<'c, T> RemovableOccupiedEntry<'c> for MaybeUninitEntry<'c, T, true>
type Removed = MaybeUninitEntry<'c, T, false>
type Removed = MaybeUninitEntry<'c, T, false>
The type returned when removing the OccupiedEntry
sourcefn remove(self) -> (Self::Value, Self::Removed)
fn remove(self) -> (Self::Value, 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
sourceimpl<'c, T> VacantEntry<'c> for MaybeUninitEntry<'c, T, false>
impl<'c, T> VacantEntry<'c> for MaybeUninitEntry<'c, T, false>
Auto Trait Implementations
impl<'c, T, const OCCUPIED: bool> RefUnwindSafe for MaybeUninitEntry<'c, T, OCCUPIED> where
T: RefUnwindSafe,
impl<'c, T, const OCCUPIED: bool> Send for MaybeUninitEntry<'c, T, OCCUPIED> where
T: Send,
impl<'c, T, const OCCUPIED: bool> Sync for MaybeUninitEntry<'c, T, OCCUPIED> where
T: Sync,
impl<'c, T, const OCCUPIED: bool> Unpin for MaybeUninitEntry<'c, T, OCCUPIED>
impl<'c, T, const OCCUPIED: bool> !UnwindSafe for MaybeUninitEntry<'c, T, OCCUPIED>
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