pub struct SharedEmbeddedRefMut<'a> { /* private fields */ }Expand description
Mutable point-key guard returned by SharedEmbeddedStore::get_mut.
Implementations§
Source§impl RefMut<'_>
impl RefMut<'_>
Sourcepub fn value(&self) -> Option<&[u8]>
pub fn value(&self) -> Option<&[u8]>
Returns the current value bytes when the key is still present.
Sourcepub fn set(&mut self, value: SharedBytes)
pub fn set(&mut self, value: SharedBytes)
Replaces the value without changing the key.
Sourcepub fn remove(self) -> Option<SharedBytes>
pub fn remove(self) -> Option<SharedBytes>
Removes the entry and returns the stored bytes when present.
Auto Trait Implementations§
impl<'a> !Freeze for RefMut<'a>
impl<'a> !RefUnwindSafe for RefMut<'a>
impl<'a> !Send for RefMut<'a>
impl<'a> !Sync for RefMut<'a>
impl<'a> Unpin for RefMut<'a>
impl<'a> UnsafeUnpin for RefMut<'a>
impl<'a> !UnwindSafe for RefMut<'a>
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