Enum ic_agent::hash_tree::HashTreeNode
source · pub enum HashTreeNode<'a> {
Empty(),
Fork(Box<(HashTreeNode<'a>, HashTreeNode<'a>), Global>),
Labeled(Cow<'a, Label>, Box<HashTreeNode<'a>, Global>),
Leaf(Cow<'a, [u8]>),
Pruned([u8; 32]),
}Expand description
A Node in the HashTree.
Variants§
Empty()
Fork(Box<(HashTreeNode<'a>, HashTreeNode<'a>), Global>)
Labeled(Cow<'a, Label>, Box<HashTreeNode<'a>, Global>)
Leaf(Cow<'a, [u8]>)
Pruned([u8; 32])
Implementations§
Trait Implementations§
source§impl<'a> AsRef<HashTreeNode<'a>> for HashTree<'a>
impl<'a> AsRef<HashTreeNode<'a>> for HashTree<'a>
source§fn as_ref(&self) -> &HashTreeNode<'a>
fn as_ref(&self) -> &HashTreeNode<'a>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'a> Clone for HashTreeNode<'a>
impl<'a> Clone for HashTreeNode<'a>
source§fn clone(&self) -> HashTreeNode<'a>
fn clone(&self) -> HashTreeNode<'a>
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 Debug for HashTreeNode<'_>
impl Debug for HashTreeNode<'_>
source§impl<'de, 'tree> Deserialize<'de> for HashTreeNode<'tree>where
'tree: 'de,
impl<'de, 'tree> Deserialize<'de> for HashTreeNode<'tree>where
'tree: 'de,
source§fn deserialize<D>(
deserializer: D
) -> Result<HashTreeNode<'tree>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<HashTreeNode<'tree>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<HashTree<'a>> for HashTreeNode<'a>
impl<'a> From<HashTree<'a>> for HashTreeNode<'a>
source§fn from(tree: HashTree<'a>) -> HashTreeNode<'a>
fn from(tree: HashTree<'a>) -> HashTreeNode<'a>
Converts to this type from the input type.
source§impl<'a> PartialEq<HashTreeNode<'a>> for HashTreeNode<'a>
impl<'a> PartialEq<HashTreeNode<'a>> for HashTreeNode<'a>
source§fn eq(&self, other: &HashTreeNode<'a>) -> bool
fn eq(&self, other: &HashTreeNode<'a>) -> bool
source§impl Serialize for HashTreeNode<'_>
impl Serialize for HashTreeNode<'_>
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Eq for HashTreeNode<'a>
impl<'a> StructuralEq for HashTreeNode<'a>
impl<'a> StructuralPartialEq for HashTreeNode<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for HashTreeNode<'a>
impl<'a> Send for HashTreeNode<'a>
impl<'a> Sync for HashTreeNode<'a>
impl<'a> Unpin for HashTreeNode<'a>
impl<'a> UnwindSafe for HashTreeNode<'a>
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.