Struct rocksdb::WriteBatch[][src]

pub struct WriteBatch { /* fields omitted */ }

Implementations

impl WriteBatch[src]

pub fn new() -> WriteBatch[src]

pub fn with_capacity(cap: usize) -> WriteBatch[src]

pub fn count(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn data_size(&self) -> usize[src]

pub fn clear(&self)[src]

pub fn set_save_point(&mut self)[src]

pub fn rollback_to_save_point(&mut self) -> Result<(), String>[src]

pub fn pop_save_point(&mut self) -> Result<(), String>[src]

pub fn data(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn append(&mut self, src: &[u8])[src]

pub fn iterate<F>(&self, cfs: &[&str], iterator_fn: F) where
    F: FnMut(&str, DBValueType, &[u8], Option<&[u8]>), 
[src]

pub fn iter(&self) -> WriteBatchIter<'_>

Notable traits for WriteBatchIter<'a>

impl<'a> Iterator for WriteBatchIter<'a> type Item = (DBValueType, u32, &'a [u8], &'a [u8]);
[src]

Trait Implementations

impl Default for WriteBatch[src]

impl Drop for WriteBatch[src]

impl Send for WriteBatch[src]

impl Writable for WriteBatch[src]

Auto Trait Implementations

impl RefUnwindSafe for WriteBatch

impl !Sync for WriteBatch

impl Unpin for WriteBatch

impl UnwindSafe for WriteBatch

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.