Struct sov_state::TreeWitnessReader
source · pub struct TreeWitnessReader<'a, T: Witness>(/* private fields */);Implementations§
Trait Implementations§
source§impl<'a, T: Witness> TreeReader for TreeWitnessReader<'a, T>
impl<'a, T: Witness> TreeReader for TreeWitnessReader<'a, T>
source§fn get_node_option(&self, _node_key: &NodeKey) -> Result<Option<Node>>
fn get_node_option(&self, _node_key: &NodeKey) -> Result<Option<Node>>
Gets node given a node key. Returns
None if the node does not exist.source§fn get_value_option(
&self,
_max_version: Version,
_key_hash: KeyHash
) -> Result<Option<OwnedValue>>
fn get_value_option( &self, _max_version: Version, _key_hash: KeyHash ) -> Result<Option<OwnedValue>>
Gets a value by identifier, returning the newest value whose version is less than or
equal to the specified version. Returns None if the value does not exist.
source§fn get_rightmost_leaf(&self) -> Result<Option<(NodeKey, LeafNode)>>
fn get_rightmost_leaf(&self) -> Result<Option<(NodeKey, LeafNode)>>
Gets the rightmost leaf. Note that this assumes we are in the process of restoring the tree
and all nodes are at the same version.
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for TreeWitnessReader<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for TreeWitnessReader<'a, T>where T: Sync,
impl<'a, T> Sync for TreeWitnessReader<'a, T>where T: Sync,
impl<'a, T> Unpin for TreeWitnessReader<'a, T>
impl<'a, T> UnwindSafe for TreeWitnessReader<'a, T>where T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more