PreimageReader

Trait PreimageReader 

Source
pub trait PreimageReader<H> {
    // Required method
    fn get(&self, image: &H) -> Option<&Node<H>>;
}
Expand description

The reader trait for a data store that maps hashes to preimages

Required Methods§

Source

fn get(&self, image: &H) -> Option<&Node<H>>

Get the preimage of a given hash

Implementors§

Source§

impl<H: Eq + Hash> PreimageReader<H> for NoopDb

Source§

impl<H: HashType> PreimageReader<H> for MemDb<H>