Struct std::collections::hash_map::RawVacantEntryMut
source · pub struct RawVacantEntryMut<'a, K: 'a, V: 'a, S: 'a> { /* private fields */ }
🔬This is a nightly-only experimental API. (
hash_raw_entry
#56167)Expand description
HashMap
中空闲条目的视图。
它是 RawEntryMut
枚举的一部分。
Implementations§
source§impl<'a, K, V, S> RawVacantEntryMut<'a, K, V, S>
impl<'a, K, V, S> RawVacantEntryMut<'a, K, V, S>
sourcepub fn insert(self, key: K, value: V) -> (&'a mut K, &'a mut V)where
K: Hash,
S: BuildHasher,
🔬This is a nightly-only experimental API. (hash_raw_entry
#56167)
pub fn insert(self, key: K, value: V) -> (&'a mut K, &'a mut V)where K: Hash, S: BuildHasher,
hash_raw_entry
#56167)用 VacantEntry
的键设置条目的值,并返回对它的可变引用。
sourcepub fn insert_hashed_nocheck(
self,
hash: u64,
key: K,
value: V
) -> (&'a mut K, &'a mut V)where
K: Hash,
S: BuildHasher,
🔬This is a nightly-only experimental API. (hash_raw_entry
#56167)
pub fn insert_hashed_nocheck( self, hash: u64, key: K, value: V ) -> (&'a mut K, &'a mut V)where K: Hash, S: BuildHasher,
hash_raw_entry
#56167)使用 VacantEntry 的键设置条目的值,并为其返回变量引用。