Trait below_store::cursor::Cursor
source · [−]pub trait Cursor {
type Offset;
type Item;
fn get_offset(&self) -> Self::Offset;
fn set_offset(&mut self, offset: Self::Offset);
fn get(&self) -> Option<Self::Item>;
fn advance(&mut self, direction: Direction) -> Result<bool>;
fn next(&mut self, direction: Direction) -> Result<Option<Self::Item>> { ... }
}Expand description
A read-only Iterator that can move back and forth.
Required Associated Types
Required Methods
sourcefn get_offset(&self) -> Self::Offset
fn get_offset(&self) -> Self::Offset
Get offset of the cursor.
sourcefn set_offset(&mut self, offset: Self::Offset)
fn set_offset(&mut self, offset: Self::Offset)
Set offset of the cursor.