Trait tikv::storage::Iterator[][src]

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

Required methods

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

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

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

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

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

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

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

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

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

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

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

Loading content...

Provided methods

pub fn validate_key(&self, &Key) -> Result<(), Error>[src]

Loading content...

Implementations on Foreign Types

impl Iterator for RocksEngineIterator[src]

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

Loading content...

Implementors

impl Iterator for BTreeEngineIterator[src]

impl<I: Iterator> Iterator for TTLIterator<I>[src]

Loading content...