Struct anymap::raw::VacantEntry
source · pub struct VacantEntry<'a, A: ?Sized + UncheckedAnyExt> { /* private fields */ }Expand description
A view into a single empty location in a RawMap.
Implementations§
source§impl<'a, A: ?Sized + UncheckedAnyExt> VacantEntry<'a, A>
impl<'a, A: ?Sized + UncheckedAnyExt> VacantEntry<'a, A>
sourcepub unsafe fn insert(self, value: Box<A>) -> &'a mut A
pub unsafe fn insert(self, value: Box<A>) -> &'a mut A
Sets the value of the entry with the VacantEntry’s key, and returns a mutable reference to it
It is the caller’s responsibility to ensure that the key of the entry corresponds with
the type ID of value. If they do not, memory safety may be violated.
Auto Trait Implementations§
impl<'a, A: ?Sized> RefUnwindSafe for VacantEntry<'a, A>where
A: RefUnwindSafe,
impl<'a, A: ?Sized> Send for VacantEntry<'a, A>where
A: Send,
impl<'a, A: ?Sized> Sync for VacantEntry<'a, A>where
A: Sync,
impl<'a, A: ?Sized> Unpin for VacantEntry<'a, A>
impl<'a, A> !UnwindSafe for VacantEntry<'a, A>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more