pub struct TestTrieCache<L: TrieLayout> { /* private fields */ }
Expand description

Example trie cache implementation.

Should not be used for anything in production.

Implementations

Clear the value cache.

Clear the node cache.

Trait Implementations

Returns the “default value” for a type. Read more

Lookup value for the given key. Read more

Cache the given value for the given key. Read more

Get or insert a NodeOwned. Read more

Get the NodeOwned that corresponds to the given hash.

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.