pub struct OrderedLeafCursor { /* private fields */ }
Expand description

A cursor for walking through an unordered sequence of values.

This cursor does not support seek, though I’m not certain how to expose this.

Trait Implementations§

source§

impl<K: Clone, R: Clone, C> Cursor<OrderedLeaf<K, R, C>> for OrderedLeafCursorwhere C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]>,

§

type Key = (K, R)

The type revealed by the cursor.
source§

fn key<'a>(&self, storage: &'a OrderedLeaf<K, R, C>) -> &'a Self::Key

Reveals the current key.
source§

fn step(&mut self, storage: &OrderedLeaf<K, R, C>)

Advances the cursor by one element.
source§

fn seek(&mut self, _storage: &OrderedLeaf<K, R, C>, _key: &Self::Key)

Advances the cursor until the location where key would be expected.
source§

fn valid(&self, _storage: &OrderedLeaf<K, R, C>) -> bool

Returns true if the cursor points at valid data. Returns false if the cursor is exhausted.
source§

fn rewind(&mut self, _storage: &OrderedLeaf<K, R, C>)

Rewinds the cursor to its initial state.
source§

fn reposition( &mut self, _storage: &OrderedLeaf<K, R, C>, lower: usize, upper: usize )

Repositions the cursor to a different range of values.
source§

impl Debug for OrderedLeafCursor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.