pub struct PlainMapEntry<'a, Key: Copy, Value: Copy> { /* private fields */ }
Implementations§
Source§impl<'a, Key: PartialEq + Copy, Value: Copy> PlainMapEntry<'a, Key, Value>
impl<'a, Key: PartialEq + Copy, Value: Copy> PlainMapEntry<'a, Key, Value>
pub fn or_insert(self, default: Value) -> &'a mut Value
pub fn or_insert_with<F: FnOnce() -> Value>(self, default: F) -> &'a mut Value
pub fn and_modify<F: FnOnce(&mut Value)>(self, f: F) -> Self
pub fn key(&self) -> &Key
Source§impl<'a, Key: PartialEq + Copy, Value: Default + Copy> PlainMapEntry<'a, Key, Value>
impl<'a, Key: PartialEq + Copy, Value: Default + Copy> PlainMapEntry<'a, Key, Value>
pub fn or_default(self) -> &'a mut Value
Auto Trait Implementations§
impl<'a, Key, Value> Freeze for PlainMapEntry<'a, Key, Value>where
Key: Freeze,
impl<'a, Key, Value> RefUnwindSafe for PlainMapEntry<'a, Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<'a, Key, Value> Send for PlainMapEntry<'a, Key, Value>
impl<'a, Key, Value> Sync for PlainMapEntry<'a, Key, Value>
impl<'a, Key, Value> Unpin for PlainMapEntry<'a, Key, Value>where
Key: Unpin,
impl<'a, Key, Value> !UnwindSafe for PlainMapEntry<'a, Key, Value>
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