pub struct MerkleBuoy<D: Copy + Eq + SubAssign<u8> + Default> { /* private fields */ }
Expand description
Helper struct to track depth when working with Merkle blocks.
Implementations§
Trait Implementations§
Source§impl<D: Clone + Copy + Eq + SubAssign<u8> + Default> Clone for MerkleBuoy<D>
impl<D: Clone + Copy + Eq + SubAssign<u8> + Default> Clone for MerkleBuoy<D>
Source§fn clone(&self) -> MerkleBuoy<D>
fn clone(&self) -> MerkleBuoy<D>
Returns a duplicate 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<D: Default + Copy + Eq + SubAssign<u8> + Default> Default for MerkleBuoy<D>
impl<D: Default + Copy + Eq + SubAssign<u8> + Default> Default for MerkleBuoy<D>
Source§fn default() -> MerkleBuoy<D>
fn default() -> MerkleBuoy<D>
Returns the “default value” for a type. Read more
impl<D: Eq + Copy + Eq + SubAssign<u8> + Default> Eq for MerkleBuoy<D>
impl<D: Copy + Eq + SubAssign<u8> + Default> StructuralPartialEq for MerkleBuoy<D>
Auto Trait Implementations§
impl<D> Freeze for MerkleBuoy<D>where
D: Freeze,
impl<D> RefUnwindSafe for MerkleBuoy<D>where
D: RefUnwindSafe,
impl<D> Send for MerkleBuoy<D>where
D: Send,
impl<D> Sync for MerkleBuoy<D>where
D: Sync,
impl<D> Unpin for MerkleBuoy<D>where
D: Unpin,
impl<D> UnwindSafe for MerkleBuoy<D>where
D: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.