Trait tikv_kv::Iterator[][src]

pub trait Iterator: Send {
    fn next(&mut self) -> Result<bool>;
fn prev(&mut self) -> Result<bool>;
fn seek(&mut self, key: &Key) -> Result<bool>;
fn seek_for_prev(&mut self, key: &Key) -> Result<bool>;
fn seek_to_first(&mut self) -> Result<bool>;
fn seek_to_last(&mut self) -> Result<bool>;
fn valid(&self) -> Result<bool>;
fn key(&self) -> &[u8];
fn value(&self) -> &[u8]; fn validate_key(&self, _: &Key) -> Result<()> { ... } }

Required methods

fn next(&mut self) -> Result<bool>[src]

fn prev(&mut self) -> Result<bool>[src]

fn seek(&mut self, key: &Key) -> Result<bool>[src]

fn seek_for_prev(&mut self, key: &Key) -> Result<bool>[src]

fn seek_to_first(&mut self) -> Result<bool>[src]

fn seek_to_last(&mut self) -> Result<bool>[src]

fn valid(&self) -> Result<bool>[src]

fn key(&self) -> &[u8][src]

Only be called when self.valid() == Ok(true).

fn value(&self) -> &[u8][src]

Only be called when self.valid() == Ok(true).

Loading content...

Provided methods

fn validate_key(&self, _: &Key) -> Result<()>[src]

Loading content...

Implementations on Foreign Types

impl<S: Snapshot> Iterator for RegionIterator<S>[src]

impl Iterator for RocksEngineIterator[src]

Loading content...

Implementors

impl Iterator for BTreeEngineIterator[src]

Loading content...