Struct std::collections::hash_map::RawVacantEntryMut [−][src]
pub struct RawVacantEntryMut<'a, K: 'a, V: 'a, S: 'a> { /* fields omitted */ }
Expand description
HashMap
中空闲条目的视图。
它是 RawEntryMut
枚举的一部分。
Implementations
用 VacantEntry
的键设置条目的值,并返回对它的可变引用。
pub fn insert_hashed_nocheck(
self,
hash: u64,
key: K,
value: V
) -> (&'a mut K, &'a mut V) where
K: Hash,
S: BuildHasher,
pub fn insert_hashed_nocheck(
self,
hash: u64,
key: K,
value: V
) -> (&'a mut K, &'a mut V) where
K: Hash,
S: BuildHasher,
使用 VacantEntry 的键设置条目的值,并为其返回变量引用。