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.
impl Eq for SiblingProof
impl StructuralEq for SiblingProof
impl StructuralPartialEq for SiblingProof
Auto Trait Implementations§
impl RefUnwindSafe for SiblingProof
impl Send for SiblingProof
impl Sync for SiblingProof
impl Unpin for SiblingProof
impl UnwindSafe for SiblingProof
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more