Trait sp_trie::Query [−][src]
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
Loading content...Required methods
Loading content...Provided methods
pub fn record(&mut self, _hash: &<H as Hasher>::Out, _data: &[u8], _depth: u32)
[src]
Record that a node has been passed through.
Implementations on Foreign Types
impl<'a, F, T, H> Query<H> for (&'a mut Recorder<<H as Hasher>::Out>, F) where
H: Hasher,
F: FnOnce(&[u8]) -> T,
[src]
H: Hasher,
F: FnOnce(&[u8]) -> T,
type Item = T
pub fn decode(self, value: &[u8]) -> T
[src]
pub fn record(&mut self, hash: &<H as Hasher>::Out, data: &[u8], depth: u32)
[src]
Implementors
impl<'a, H> Query<H> for &'a mut Recorder<<H as Hasher>::Out> where
H: Hasher,
[src]
H: Hasher,
type Item = Vec<u8, Global>
pub fn decode(self, value: &[u8]) -> Vec<u8, Global>
[src]
pub fn record(&mut self, hash: &<H as Hasher>::Out, data: &[u8], depth: u32)
[src]
impl<F, T, H> Query<H> for F where
H: Hasher,
F: for<'a> FnOnce(&'a [u8]) -> T,
[src]
H: Hasher,
F: for<'a> FnOnce(&'a [u8]) -> T,