Enum ic_agent::hash_tree::SubtreeLookupResult
source · pub enum SubtreeLookupResult<'tree> {
Absent,
Unknown,
Found(HashTree<'tree>),
}Expand description
A result of looking up for a subtree.
Variants§
Absent
The subtree at the provided path is guaranteed to be absent in the original state tree.
Unknown
This partial view does not include information about this path, and the original tree may or may note include a subtree at this path.
Found(HashTree<'tree>)
The subtree was found at the provided path.
Trait Implementations§
source§impl<'tree> Clone for SubtreeLookupResult<'tree>
impl<'tree> Clone for SubtreeLookupResult<'tree>
source§fn clone(&self) -> SubtreeLookupResult<'tree>
fn clone(&self) -> SubtreeLookupResult<'tree>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'tree> Debug for SubtreeLookupResult<'tree>
impl<'tree> Debug for SubtreeLookupResult<'tree>
source§impl<'tree> PartialEq<SubtreeLookupResult<'tree>> for SubtreeLookupResult<'tree>
impl<'tree> PartialEq<SubtreeLookupResult<'tree>> for SubtreeLookupResult<'tree>
source§fn eq(&self, other: &SubtreeLookupResult<'tree>) -> bool
fn eq(&self, other: &SubtreeLookupResult<'tree>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'tree> Eq for SubtreeLookupResult<'tree>
impl<'tree> StructuralEq for SubtreeLookupResult<'tree>
impl<'tree> StructuralPartialEq for SubtreeLookupResult<'tree>
Auto Trait Implementations§
impl<'tree> RefUnwindSafe for SubtreeLookupResult<'tree>
impl<'tree> Send for SubtreeLookupResult<'tree>
impl<'tree> Sync for SubtreeLookupResult<'tree>
impl<'tree> Unpin for SubtreeLookupResult<'tree>
impl<'tree> UnwindSafe for SubtreeLookupResult<'tree>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.