pub struct VacantEntry<'a, K, V, Codec = Default> { /* private fields */ }👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
Expand description
A view into a vacant entry in an observable hash map.
Implementations§
Source§impl<'a, K, V, Codec> VacantEntry<'a, K, V, Codec>
impl<'a, K, V, Codec> VacantEntry<'a, K, V, Codec>
Sourcepub fn key(&self) -> &K
👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
pub fn key(&self) -> &K
Gets a reference to the key.
Sourcepub fn into_key(self) -> K
👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
pub fn into_key(self) -> K
Take ownership of the key.
Sourcepub fn insert(self, value: V) -> RefMut<'a, K, V, Codec>
👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
pub fn insert(self, value: V) -> RefMut<'a, K, V, Codec>
Sets the value of the entry, and returns a mutable reference to it.
A HashMapEvent::Set change event is sent.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V, Codec> Freeze for VacantEntry<'a, K, V, Codec>where
K: Freeze,
impl<'a, K, V, Codec = Default> !RefUnwindSafe for VacantEntry<'a, K, V, Codec>
impl<'a, K, V, Codec = Default> !Send for VacantEntry<'a, K, V, Codec>
impl<'a, K, V, Codec = Default> !Sync for VacantEntry<'a, K, V, Codec>
impl<'a, K, V, Codec> Unpin for VacantEntry<'a, K, V, Codec>where
K: Unpin,
impl<'a, K, V, Codec = Default> !UnwindSafe for VacantEntry<'a, K, V, Codec>
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