pub struct TransactionTree<Root: Root, File: ManagedFile> { /* private fields */ }
Expand description

A tree that is modifiable during a transaction.

Implementations

Returns the latest sequence id.

Sets key to value.

Executes a modification.

Sets key to value. If a value already exists, it will be returned.

Returns the current value of key. This will return updated information if it has been previously updated within this transaction.

Removes key and returns the existing value, if present.

Compares the value of key against old. If the values match, key will be set to the new value if new is Some or removed if new is None.

Retrieves the values of keys. If any keys are not found, they will be omitted from the results. Keys are required to be pre-sorted.

Retrieves all of the values of keys within range.

Scans the tree. Each key that is contained range will be passed to key_evaluator, which can opt to read the data for the key, skip, or stop scanning. If KeyEvaluation::ReadData is returned, callback will be invoked with the key and stored value. The order in which callback is invoked is not necessarily the same order in which the keys are found.

Returns the last of the tree.

Returns the last key and value of the tree.

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.