Trait patricia_trie::Query
[−]
[src]
pub trait Query { type Item; fn decode(self, _: &[u8]) -> Self::Item; fn record(&mut self, &H256, &[u8], u32) { ... } }
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
type Item
Output item.
Required Methods
Provided Methods
Implementations on Foreign Types
impl<'a, F, T> Query for (&'a mut Recorder, F) where
F: FnOnce(&[u8]) -> T,
[src]
F: FnOnce(&[u8]) -> T,