[−][src]Struct leveldb::database::batch::Writebatch
Methods
impl<K: Key> Writebatch<K>[src]
pub fn new() -> Writebatch<K>[src]
Create a new writebatch
pub fn clear(&mut self)[src]
Clear the writebatch
pub fn put(&mut self, key: K, value: &[u8])[src]
Batch a put operation
pub fn delete(&mut self, key: K)[src]
Batch a delete operation
pub fn iterate<T: WritebatchIterator<K = K>>(
&mut self,
iterator: Box<T>
) -> Box<T>[src]
&mut self,
iterator: Box<T>
) -> Box<T>
Iterate over the writebatch, returning the resulting iterator
Auto Trait Implementations
impl<K> !Send for Writebatch<K>
impl<K> Unpin for Writebatch<K> where
K: Unpin,
K: Unpin,
impl<K> !Sync for Writebatch<K>
impl<K> UnwindSafe for Writebatch<K> where
K: UnwindSafe,
K: UnwindSafe,
impl<K> RefUnwindSafe for Writebatch<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,