[][src]Struct leveldb::database::batch::Writebatch

pub struct Writebatch<K: Key> { /* fields omitted */ }

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]

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

impl<K> !Sync for Writebatch<K>

impl<K> UnwindSafe for Writebatch<K> where
    K: UnwindSafe

impl<K> RefUnwindSafe for Writebatch<K> where
    K: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]