Struct halfbrown::RawVacantEntryMut
source · [−]pub struct RawVacantEntryMut<'map, K, V, S>(_);
Expand description
A view into a vacant entry in a HashMap
.
It is part of the RawEntryMut
enum.
Implementations
sourceimpl<'map, K, V, S> RawVacantEntryMut<'map, K, V, S> where
S: BuildHasher,
impl<'map, K, V, S> RawVacantEntryMut<'map, K, V, S> where
S: BuildHasher,
sourcepub fn insert(self, key: K, value: V) -> (&'map mut K, &'map mut V) where
K: Hash,
S: BuildHasher,
pub fn insert(self, key: K, value: V) -> (&'map mut K, &'map mut V) where
K: Hash,
S: BuildHasher,
Sets the value of the entry with the VacantEntry
’s key,
and returns a mutable reference to it.
sourcepub fn insert_hashed_nocheck(
self,
hash: u64,
key: K,
value: V
) -> (&'map mut K, &'map mut V) where
K: Hash,
S: BuildHasher,
pub fn insert_hashed_nocheck(
self,
hash: u64,
key: K,
value: V
) -> (&'map mut K, &'map mut V) where
K: Hash,
S: BuildHasher,
Sets the value of the entry with the VacantEntry
’s key,
and returns a mutable reference to it.
Trait Implementations
sourceimpl<K, V, S> Debug for RawVacantEntryMut<'_, K, V, S>
impl<K, V, S> Debug for RawVacantEntryMut<'_, K, V, S>
sourceimpl<'map, K, V, S> From<RawVacantEntryMut<'map, K, V, S, Global>> for RawVacantEntryMut<'map, K, V, S>
impl<'map, K, V, S> From<RawVacantEntryMut<'map, K, V, S, Global>> for RawVacantEntryMut<'map, K, V, S>
sourcefn from(m: RawVacantEntryMut<'map, K, V, S>) -> Self
fn from(m: RawVacantEntryMut<'map, K, V, S>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<'map, K, V, S> RefUnwindSafe for RawVacantEntryMut<'map, K, V, S> where
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<'map, K, V, S> Send for RawVacantEntryMut<'map, K, V, S> where
K: Send,
S: Send + Sync,
V: Send,
impl<'map, K, V, S> Sync for RawVacantEntryMut<'map, K, V, S> where
K: Sync,
S: Sync,
V: Sync,
impl<'map, K, V, S> Unpin for RawVacantEntryMut<'map, K, V, S>
impl<'map, K, V, S> !UnwindSafe for RawVacantEntryMut<'map, K, V, S>
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