Struct sp_database::MemDb[][src]

pub struct MemDb(_);
Expand description

This implements Database as an in-memory hash map. commit is not atomic.

Implementations

Create a new instance

Count number of values in a column

Trait Implementations

Commit the transaction to the database atomically. Any further calls to get or lookup will reflect the new state. Read more

Retrieve the value previously stored against key or None if key is not currently in the database. Read more

Check if the value exists in the database without retrieving it.

Check value size in the database possibly without retrieving it.

Call f with the value previously stored against key. Read more

Check if database supports internal ref counting for state data. Read more

Returns the “default value” for a type. 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.