Struct kvdb_memorydb::InMemory

source ·
pub struct InMemory { /* private fields */ }
Expand description

A key-value database fulfilling the KeyValueDB trait, living in memory. This is generally intended for tests and is not particularly optimized.

Trait Implementations§

Returns the “default value” for a type. Read more
Get a value by key.
Get the first value matching the given prefix.
Write a transaction of changes to the backing store.
Iterate over the data for a given column.
Iterate over the data for a given column, returning all key/value pairs where the key starts with the given prefix. Read more
Helper to create a new transaction.
Query statistics. Read more
Check for the existence of a value by key.
Check for the existence of a value by prefix.

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.