Struct sdb::btree::Cursor[]

pub struct Cursor<K, V, P> where
    K: ?Sized,
    V: ?Sized,
    P: BTreePage<K, V>, 
{ /* fields omitted */ }
Expand description

A position in a B tree.

Implementations

Create a new cursor, initialised to the first entry of the B tree.

Reset the cursor to the first element of the database.

Set the cursor to the first position larger than or equal to the specified key and value.

Set the cursor after the last element, so that Self::next returns None, and Self::prev returns the last element.

Return the current position of the cursor.

Return the current position of the cursor, and move the cursor to the next position.

Move the cursor to the previous entry, and return the current entry. If the cursor is initially after all the entries, this moves it back by two steps.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.