Trait arber::Store[][src]

pub trait Store<T> where
    T: Clone
{ fn append(&mut self, elem: &T, hashes: &[Hash]) -> Result<(), Error>;
fn hash_at(&self, idx: u64) -> Result<Hash, Error>;
fn peak_hash_at(&self, idx: u64) -> Result<Hash, Error>; }

Required methods

fn append(&mut self, elem: &T, hashes: &[Hash]) -> Result<(), Error>[src]

fn hash_at(&self, idx: u64) -> Result<Hash, Error>[src]

fn peak_hash_at(&self, idx: u64) -> Result<Hash, Error>[src]

Implementors

impl<T> Store<T> for VecStore<T> where
    T: Clone
[src]

fn append(&mut self, elem: &T, hashes: &[Hash]) -> Result<(), Error>[src]

fn hash_at(&self, idx: u64) -> Result<Hash, Error>[src]

fn peak_hash_at(&self, idx: u64) -> Result<Hash, Error>[src]