Struct keyed_set::VacantEntry
source · pub struct VacantEntry<'a, T: 'a, Extractor, K, S> {
pub set: &'a mut KeyedSet<T, Extractor, S>,
pub key: K,
}Fields
set: &'a mut KeyedSet<T, Extractor, S>key: KImplementations
sourceimpl<'a, K, T, Extractor, S> VacantEntry<'a, T, Extractor, K, S>where
S: BuildHasher,
for<'z> Extractor: KeyExtractor<'z, T>,
for<'z, 'b> <Extractor as KeyExtractor<'z, T>>::Key: PartialEq<<Extractor as KeyExtractor<'b, T>>::Key>,
impl<'a, K, T, Extractor, S> VacantEntry<'a, T, Extractor, K, S>where
S: BuildHasher,
for<'z> Extractor: KeyExtractor<'z, T>,
for<'z, 'b> <Extractor as KeyExtractor<'z, T>>::Key: PartialEq<<Extractor as KeyExtractor<'b, T>>::Key>,
pub fn insert_with<F: FnOnce(K) -> T>(self, f: F) -> &'a mut T
Auto Trait Implementations
impl<'a, T, Extractor, K, S> RefUnwindSafe for VacantEntry<'a, T, Extractor, K, S>where
Extractor: RefUnwindSafe,
K: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, Extractor, K, S> Send for VacantEntry<'a, T, Extractor, K, S>where
Extractor: Send,
K: Send,
S: Send,
T: Send,
impl<'a, T, Extractor, K, S> Sync for VacantEntry<'a, T, Extractor, K, S>where
Extractor: Sync,
K: Sync,
S: Sync,
T: Sync,
impl<'a, T, Extractor, K, S> Unpin for VacantEntry<'a, T, Extractor, K, S>where
K: Unpin,
impl<'a, T, Extractor, K, S> !UnwindSafe for VacantEntry<'a, T, Extractor, K, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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