pub trait MMRStore<Elem> {
    // Required methods
    fn get_elem(&self, pos: u64) -> Result<Option<Elem>>;
    fn append(&mut self, pos: u64, elems: Vec<Elem>) -> Result<()>;
}

Required Methods§

source

fn get_elem(&self, pos: u64) -> Result<Option<Elem>>

source

fn append(&mut self, pos: u64, elems: Vec<Elem>) -> Result<()>

Implementors§

source§

impl<T: Clone> MMRStore<T> for &MemStore<T>