PreimageWriter

Trait PreimageWriter 

Source
pub trait PreimageWriter<H> {
    // Required method
    fn put(&mut self, image: H, preimage: Node<H>);
}
Expand description

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

Required Methods§

Source

fn put(&mut self, image: H, preimage: Node<H>)

Store the preimage of a given hash

Implementors§

Source§

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

Source§

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