Trait diem_jellyfish_merkle::TreeReader
source · pub trait TreeReader<V> {
// Required methods
fn get_node_option(&self, node_key: &NodeKey) -> Result<Option<Node<V>>>;
fn get_rightmost_leaf(&self) -> Result<Option<(NodeKey, LeafNode<V>)>>;
// Provided method
fn get_node(&self, node_key: &NodeKey) -> Result<Node<V>> { ... }
}
Expand description
TreeReader
defines the interface between
JellyfishMerkleTree
and underlying storage holding nodes.