pub struct Entry<'a, K: PartialOrd, V> { /* private fields */ }
Implementations§
Source§impl<'a, K: PartialOrd + Copy, V> Entry<'a, K, V>
Follows a similar implementation to std::collections::HashMap,
in terms of behaviour, only differs in types used.
For further detail about any given method, please refer
to the documentation of HashMap::Entry.
For the time being only copyable keys can utilise
these methods
impl<'a, K: PartialOrd + Copy, V> Entry<'a, K, V>
Follows a similar implementation to std::collections::HashMap, in terms of behaviour, only differs in types used. For further detail about any given method, please refer to the documentation of HashMap::Entry. For the time being only copyable keys can utilise these methods
Source§impl<'a, K: PartialOrd + Copy, V: Default> Entry<'a, K, V>
impl<'a, K: PartialOrd + Copy, V: Default> Entry<'a, K, V>
pub fn or_default<F>(self) -> &'a mut Vwhere
F: FnOnce() -> V,
Auto Trait Implementations§
impl<'a, K, V> Freeze for Entry<'a, K, V>where
K: Freeze,
impl<'a, K, V> RefUnwindSafe for Entry<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for Entry<'a, K, V>
impl<'a, K, V> Sync for Entry<'a, K, V>
impl<'a, K, V> Unpin for Entry<'a, K, V>where
K: Unpin,
impl<'a, K, V> !UnwindSafe for Entry<'a, K, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more