Trait sp_trie::Query

source ·
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§

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> Query<H> for F
where H: Hasher, F: for<'a> FnOnce(&'a [u8]) -> T,

§

type Item = T