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 a value by partial key. Only works for flushed data.

Write a transaction of changes to the buffer.

Flush all buffered data.

Iterate over flushed data for a given column.

Iterate over flushed data for a given column, starting from a given prefix.

Attempt to replace this database with a new one located at the given path.

Helper to create a new transaction.

Write a transaction of changes to the backing store.

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.