pub trait AsTrieBackend<H, C = LocalTrieCache<H>>where
    H: Hasher,{
    type TrieBackendStorage: TrieBackendStorage<H>;

    // Required method
    fn as_trie_backend(&self) -> &TrieBackend<Self::TrieBackendStorage, H, C>;
}
Expand description

Something that can be converted into a TrieBackend.

Required Associated Types§

type TrieBackendStorage: TrieBackendStorage<H>

Type of trie backend storage.

Required Methods§

fn as_trie_backend(&self) -> &TrieBackend<Self::TrieBackendStorage, H, C>

Return the type as TrieBackend.

Implementors§

§

impl<S, H, C> AsTrieBackend<H, C> for TrieBackend<S, H, C>where S: TrieBackendStorage<H>, H: Hasher,