pub struct WriteSet(/* private fields */);Implementations§
Source§impl WriteSet
impl WriteSet
pub fn put(&mut self, key: DocumentKey, value: impl Into<Vec<u8>>)
pub fn delete(&mut self, key: DocumentKey)
pub fn get(&self, key: &DocumentKey) -> Option<&WriteIntent>
pub fn iter(&self) -> impl Iterator<Item = (&DocumentKey, &WriteIntent)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
impl Eq for WriteSet
impl StructuralPartialEq for WriteSet
Auto Trait Implementations§
impl Freeze for WriteSet
impl RefUnwindSafe for WriteSet
impl Send for WriteSet
impl Sync for WriteSet
impl Unpin for WriteSet
impl UnsafeUnpin for WriteSet
impl UnwindSafe for WriteSet
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