pub struct WriteBatch { /* private fields */ }
Implementations§
Source§impl WriteBatch
impl WriteBatch
pub fn new() -> WriteBatch
Sourcepub fn put(&self, key: &dyn IntoLevelDBKey, value: &[u8])
pub fn put(&self, key: &dyn IntoLevelDBKey, value: &[u8])
Batch a put operation
pub fn put_u8(&self, key: &[u8], value: &[u8])
Sourcepub fn delete(&self, key: &dyn IntoLevelDBKey)
pub fn delete(&self, key: &dyn IntoLevelDBKey)
Batch a delete operation
pub fn delete_u8(&self, key: &[u8])
Sourcepub fn iterate<T: WriteBatchIterator>(&mut self, iterator: Box<T>) -> Box<T>
pub fn iterate<T: WriteBatchIterator>(&mut self, iterator: Box<T>) -> Box<T>
Iterate over the writeBatch, returning the resulting iterator
Auto Trait Implementations§
impl Freeze for WriteBatch
impl RefUnwindSafe for WriteBatch
impl !Send for WriteBatch
impl !Sync for WriteBatch
impl Unpin 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