pub struct VacantEntry<'a, T: BiHashItem, S = DefaultHashBuilder, A: Allocator = Global> { /* private fields */ }
Expand description
A vacant entry.
Implementations§
Source§impl<'a, T: BiHashItem, S: Clone + BuildHasher, A: Allocator> VacantEntry<'a, T, S, A>
impl<'a, T: BiHashItem, S: Clone + BuildHasher, A: Allocator> VacantEntry<'a, T, S, A>
Sourcepub fn insert(self, value: T) -> RefMut<'a, T, S>
pub fn insert(self, value: T) -> RefMut<'a, T, S>
Sets the entry to a new value, returning a mutable reference to the value.
Sourcepub fn insert_entry(self, value: T) -> OccupiedEntry<'a, T, S, A>
pub fn insert_entry(self, value: T) -> OccupiedEntry<'a, T, S, A>
Sets the value of the entry, and returns an OccupiedEntry
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, S, A> Freeze for VacantEntry<'a, T, S, A>where
S: Freeze,
impl<'a, T, S, A> RefUnwindSafe for VacantEntry<'a, T, S, A>
impl<'a, T, S, A> Send for VacantEntry<'a, T, S, A>
impl<'a, T, S, A> Sync for VacantEntry<'a, T, S, A>
impl<'a, T, S, A> Unpin for VacantEntry<'a, T, S, A>where
S: Unpin,
impl<'a, T, S = RandomState, A = Global> !UnwindSafe for VacantEntry<'a, T, S, 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