pub struct OrderedCursor<L: Trie> {
    pub child: L::Cursor,
    /* private fields */
}
Expand description

A cursor with a child cursor that is updated as we move.

Fields§

§child: L::Cursor

The cursor for the trie layer below this one.

Trait Implementations§

source§

impl<K, L, O, C> Cursor<OrderedLayer<K, L, O, C>> for OrderedCursor<L>where K: Ord, C: BatchContainer<Item = K>, L: Trie, O: OrdOffset,

§

type Key = K

The type revealed by the cursor.
source§

fn key<'a>(&self, storage: &'a OrderedLayer<K, L, O, C>) -> &'a Self::Key

Reveals the current key.
source§

fn step(&mut self, storage: &OrderedLayer<K, L, O, C>)

Advances the cursor by one element.
source§

fn seek(&mut self, storage: &OrderedLayer<K, L, O, C>, key: &Self::Key)

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

fn valid(&self, _storage: &OrderedLayer<K, L, O, C>) -> bool

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

fn rewind(&mut self, storage: &OrderedLayer<K, L, O, C>)

Rewinds the cursor to its initial state.
source§

fn reposition( &mut self, storage: &OrderedLayer<K, L, O, C>, lower: usize, upper: usize )

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

impl<L: Debug + Trie> Debug for OrderedCursor<L>where L::Cursor: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<L> RefUnwindSafe for OrderedCursor<L>where <L as Trie>::Cursor: RefUnwindSafe,

§

impl<L> Send for OrderedCursor<L>where <L as Trie>::Cursor: Send,

§

impl<L> Sync for OrderedCursor<L>where <L as Trie>::Cursor: Sync,

§

impl<L> Unpin for OrderedCursor<L>where <L as Trie>::Cursor: Unpin,

§

impl<L> UnwindSafe for OrderedCursor<L>where <L as Trie>::Cursor: UnwindSafe,

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.