Struct akd::SiblingProof
source · pub struct SiblingProof {
pub label: NodeLabel,
pub siblings: [AzksElement; 1],
pub direction: Direction,
}
Expand description
Represents a specific level of the tree with the parental sibling and the direction of the parent for use in tree hash calculations
Fields§
§label: NodeLabel
The parent’s label
siblings: [AzksElement; 1]
Sibling of the parent that is not on the path
direction: Direction
The direction
Trait Implementations§
source§impl Clone for SiblingProof
impl Clone for SiblingProof
source§fn clone(&self) -> SiblingProof
fn clone(&self) -> SiblingProof
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 SiblingProof
impl Debug for SiblingProof
source§impl From<&SiblingProof> for SiblingProof
impl From<&SiblingProof> for SiblingProof
source§fn from(input: &SiblingProof) -> SiblingProof
fn from(input: &SiblingProof) -> SiblingProof
Converts to this type from the input type.
source§impl PartialEq<SiblingProof> for SiblingProof
impl PartialEq<SiblingProof> for SiblingProof
source§fn eq(&self, other: &SiblingProof) -> bool
fn eq(&self, other: &SiblingProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&SiblingProof> for SiblingProof
impl TryFrom<&SiblingProof> for SiblingProof
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
input: &SiblingProof
) -> Result<SiblingProof, <SiblingProof as TryFrom<&SiblingProof>>::Error>
fn try_from( input: &SiblingProof ) -> Result<SiblingProof, <SiblingProof as TryFrom<&SiblingProof>>::Error>
Performs the conversion.