referrerpolicy=no-referrer-when-downgrade

Trait sp_state_machine::backend::AsTrieBackend

source ·
pub trait AsTrieBackend<H: Hasher, C = LocalTrieCache<H>> {
    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§

source

type TrieBackendStorage: TrieBackendStorage<H>

Type of trie backend storage.

Required Methods§

source

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

Return the type as TrieBackend.

Implementors§

source§

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