pub struct MerklePath {
pub root_id: u8,
pub index: usize,
pub leaf: [u8; 32],
pub nodes: Vec<[u8; 32]>,
}
Expand description
A type alias for the Merkle path, which is a vector of tuples containing the root ID, index, leaf, and the siblings on the path to the root from the leaf.
Fields§
§root_id: u8
§index: usize
§leaf: [u8; 32]
§nodes: Vec<[u8; 32]>
Trait Implementations§
Source§impl Clone for MerklePath
impl Clone for MerklePath
Source§fn clone(&self) -> MerklePath
fn clone(&self) -> MerklePath
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 MerklePath
impl Debug for MerklePath
Source§impl Hash for MerklePath
impl Hash for MerklePath
Source§impl Ord for MerklePath
impl Ord for MerklePath
Source§fn cmp(&self, other: &MerklePath) -> Ordering
fn cmp(&self, other: &MerklePath) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MerklePath
impl PartialEq for MerklePath
Source§impl PartialOrd for MerklePath
impl PartialOrd for MerklePath
impl Eq for MerklePath
impl StructuralPartialEq for MerklePath
Auto Trait Implementations§
impl Freeze for MerklePath
impl RefUnwindSafe for MerklePath
impl Send for MerklePath
impl Sync for MerklePath
impl Unpin for MerklePath
impl UnwindSafe for MerklePath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more