pub struct HashTrieReadTxn<'a, K, V> where
    K: Hash + Eq + Clone + Debug + Sync + Send + 'static,
    V: Clone + Sync + Send + 'static, 
{ /* private fields */ }
Expand description

An active read transaction over a HashTrie. The data in this tree is guaranteed to not change and will remain consistent for the life of this transaction.

Implementations

Retrieve a value from the tree. If the value exists, a reference is returned as Some(&V), otherwise if not present None is returned.

Assert if a key exists in the tree.

Returns the current number of k:v pairs in the tree

Determine if the set is currently empty

Iterator over (&K, &V) of the set

Iterator over &K

Iterator over &V

Create a read-snapshot of the current tree. As this is the read variant, it IS safe, and guaranteed the tree will not change.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.