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§
source§impl<'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.
sourcepub fn insert_with_hasher<H>(
self,
hash: u64,
key: K,
value: V,
hasher: H
) -> (&'map mut K, &'map mut V)where
S: BuildHasher,
H: Fn(&K) -> u64,
pub fn insert_with_hasher<H>(
self,
hash: u64,
key: K,
value: V,
hasher: H
) -> (&'map mut K, &'map mut V)where
S: BuildHasher,
H: Fn(&K) -> u64,
Set the value of an entry with a custom hasher function.
Trait Implementations§
source§impl<K, V, S> Debug for RawVacantEntryMut<'_, K, V, S>
impl<K, V, S> Debug for RawVacantEntryMut<'_, K, V, S>
source§impl<'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>
source§fn from(m: RawVacantEntryMut<'map, K, V, S>) -> Self
fn from(m: RawVacantEntryMut<'map, K, V, S>) -> Self
Converts to this type from the input type.