Trait trie_db::Query

source ·
pub trait Query<H: Hasher> {
    type Item;

    // Required method
    fn decode(self, data: &[u8]) -> Self::Item;
}
Expand description

Description of what kind of query will be made to the trie.

Required Associated Types§

source

type Item

Output item.

Required Methods§

source

fn decode(self, data: &[u8]) -> Self::Item

Decode a byte-slice into the desired item.

Implementors§

source§

impl<F, T, H: Hasher> Query<H> for F
where F: for<'a> FnOnce(&'a [u8]) -> T,

§

type Item = T