Trait grovedb_merk::tree::Commit
source · pub trait Commit {
// Required method
fn write(
&mut self,
tree: &mut TreeNode,
old_specialized_cost: &impl Fn(&Vec<u8>, &Vec<u8>) -> Result<u32, Error>,
) -> Result<(), Error>;
// Provided method
fn prune(&self, _tree: &TreeNode) -> (bool, bool) { ... }
}Expand description
To be used when committing a tree (writing it to a store after applying the changes).
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.