Trait sp_trie::Query[]

pub trait Query<H> where
    H: Hasher, 
{ type Item; fn decode(self, data: &[u8]) -> Self::Item; fn record(&mut self, _hash: &<H as Hasher>::Out, _data: &[u8], _depth: u32) { ... } }
Expand description

Various re-exports from the trie-db crate. Description of what kind of query will be made to the trie.

This is implemented for any &mut recorder (where the query will return a DBValue), any function taking raw bytes (where no recording will be made), or any tuple of (&mut Recorder, FnOnce(&u8))

Associated Types

Output item.

Required methods

Decode a byte-slice into the desired item.

Provided methods

Record that a node has been passed through.

Implementations on Foreign Types

Implementors