pub struct WriteBatch { /* private fields */ }Implementations§
Source§impl WriteBatch
impl WriteBatch
pub fn new() -> Self
pub fn put<K, V>(&mut self, key: K, value: V)
pub fn delete<K>(&mut self, key: K)
pub fn clear(&mut self)
pub fn approximate_size(&self) -> usize
pub fn iterate(&self, handler: &mut dyn Handler) -> Result<(), Error>
pub fn append(&mut self, src: &WriteBatch)
Trait Implementations§
Source§impl Clone for WriteBatch
impl Clone for WriteBatch
Source§fn clone(&self) -> WriteBatch
fn clone(&self) -> WriteBatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WriteBatch
impl RefUnwindSafe for WriteBatch
impl Send for WriteBatch
impl Sync for WriteBatch
impl Unpin for WriteBatch
impl UnsafeUnpin for WriteBatch
impl UnwindSafe for WriteBatch
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