Trait sp_trie::Query

pub trait Query<H>
where H: Hasher,
{ type Item; // Required method fn decode(self, data: &[u8]) -> Self::Item; }
Expand description

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

Required Associated Types§

type Item

Output item.

Required Methods§

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

Decode a byte-slice into the desired item.

Implementors§

§

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

§

type Item = T