Struct elements::taproot::LeafVersion
source · pub struct LeafVersion(/* private fields */);
Expand description
The leaf version for tapleafs
Implementations§
Trait Implementations§
source§impl Clone for LeafVersion
impl Clone for LeafVersion
source§fn clone(&self) -> LeafVersion
fn clone(&self) -> LeafVersion
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 LeafVersion
impl Debug for LeafVersion
source§impl Default for LeafVersion
impl Default for LeafVersion
source§impl From<LeafVersion> for u8
impl From<LeafVersion> for u8
source§fn from(lv: LeafVersion) -> u8
fn from(lv: LeafVersion) -> u8
Converts to this type from the input type.
source§impl Hash for LeafVersion
impl Hash for LeafVersion
source§impl Ord for LeafVersion
impl Ord for LeafVersion
source§fn cmp(&self, other: &LeafVersion) -> Ordering
fn cmp(&self, other: &LeafVersion) -> 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 LeafVersion
impl PartialEq for LeafVersion
source§fn eq(&self, other: &LeafVersion) -> bool
fn eq(&self, other: &LeafVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LeafVersion
impl PartialOrd for LeafVersion
source§fn partial_cmp(&self, other: &LeafVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &LeafVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LeafVersion
impl Eq for LeafVersion
impl StructuralPartialEq for LeafVersion
Auto Trait Implementations§
impl RefUnwindSafe for LeafVersion
impl Send for LeafVersion
impl Sync for LeafVersion
impl Unpin for LeafVersion
impl UnwindSafe for LeafVersion
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