Struct akd::proof_structs::LayerProof
source · [−]pub struct LayerProof<H: Hasher> {
pub label: NodeLabel,
pub siblings: [Node<H>; 1],
pub direction: Direction,
}
Expand description
Proof value at a single layer of the tree
Fields
label: NodeLabel
The parent’s label
siblings: [Node<H>; 1]
Siblings of the parent
direction: Direction
The direction
Trait Implementations
sourceimpl<H: Hasher> Clone for LayerProof<H>
impl<H: Hasher> Clone for LayerProof<H>
sourceimpl<H: Debug + Hasher> Debug for LayerProof<H>
impl<H: Debug + Hasher> Debug for LayerProof<H>
sourceimpl<H: PartialEq + Hasher> PartialEq<LayerProof<H>> for LayerProof<H>
impl<H: PartialEq + Hasher> PartialEq<LayerProof<H>> for LayerProof<H>
sourcefn eq(&self, other: &LayerProof<H>) -> bool
fn eq(&self, other: &LayerProof<H>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LayerProof<H>) -> bool
fn ne(&self, other: &LayerProof<H>) -> bool
This method tests for !=
.
impl<H: Hasher> StructuralPartialEq for LayerProof<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for LayerProof<H> where
<H as Hasher>::Digest: RefUnwindSafe,
impl<H> Send for LayerProof<H>
impl<H> Sync for LayerProof<H>
impl<H> Unpin for LayerProof<H> where
<H as Hasher>::Digest: Unpin,
impl<H> UnwindSafe for LayerProof<H> where
<H as Hasher>::Digest: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more