pub struct PositionAwareTree { /* private fields */ }Expand description
Binary Merkle tree over power-of-two leaves. Proof order: siblings from leaf level
toward the root (deepest first): index 0 is the leaf’s immediate sibling, then the
next level, up to the sibling below the root.
Implementations§
Trait Implementations§
Source§impl Clone for PositionAwareTree
impl Clone for PositionAwareTree
Source§fn clone(&self) -> PositionAwareTree
fn clone(&self) -> PositionAwareTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PositionAwareTree
impl RefUnwindSafe for PositionAwareTree
impl Send for PositionAwareTree
impl Sync for PositionAwareTree
impl Unpin for PositionAwareTree
impl UnsafeUnpin for PositionAwareTree
impl UnwindSafe for PositionAwareTree
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,
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