Trait sparse_merkle_tree::traits::Store[][src]

pub trait Store<V> {
    fn get_branch(
        &self,
        branch_key: &BranchKey
    ) -> Result<Option<BranchNode>, Error>;
fn get_leaf(&self, leaf_key: &H256) -> Result<Option<V>, Error>;
fn insert_branch(
        &mut self,
        node_key: BranchKey,
        branch: BranchNode
    ) -> Result<(), Error>;
fn insert_leaf(&mut self, leaf_key: H256, leaf: V) -> Result<(), Error>;
fn remove_branch(&mut self, node_key: &BranchKey) -> Result<(), Error>;
fn remove_leaf(&mut self, leaf_key: &H256) -> Result<(), Error>; }
Expand description

Trait for customize backend storage

Required methods

Implementors