Enum kv::Cursor

source ·
pub enum Cursor<'a, K, V> {
    ReadOnly(RoCursor<'a>),
    ReadWrite(RwCursor<'a>),
    Phantom(Hidden<K, V>),
}
Expand description

Iterable access to the database

Variants

ReadOnly(RoCursor<'a>)

Readonly access

ReadWrite(RwCursor<'a>)

Read-write access

Phantom(Hidden<K, V>)

Type information

Implementations

Returns true when the transaction is ReadOnly

Iterate over all key/value pairs

Iterate over key/values pairs starting at key

Insert a value at the current position

Insert a value at the current position

Get a value from the cursor

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

Returns the argument unchanged.

Calls U::from(self).

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

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.