Enum miniscript::plan::TaprootAvailableLeaves
source · pub enum TaprootAvailableLeaves {
None,
Any,
Single(TapLeafHash),
Many(Vec<TapLeafHash>),
}
Expand description
Which taproot leaves the key can sign for
Variants§
None
Cannot sign for any leaf
Any
Can sign for any leaf
Single(TapLeafHash)
Can sign only for a specific leaf
Many(Vec<TapLeafHash>)
Can sign for multiple leaves
Trait Implementations§
source§impl Clone for TaprootAvailableLeaves
impl Clone for TaprootAvailableLeaves
source§fn clone(&self) -> TaprootAvailableLeaves
fn clone(&self) -> TaprootAvailableLeaves
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 TaprootAvailableLeaves
impl Debug for TaprootAvailableLeaves
source§impl Hash for TaprootAvailableLeaves
impl Hash for TaprootAvailableLeaves
source§impl Ord for TaprootAvailableLeaves
impl Ord for TaprootAvailableLeaves
source§fn cmp(&self, other: &TaprootAvailableLeaves) -> Ordering
fn cmp(&self, other: &TaprootAvailableLeaves) -> 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<TaprootAvailableLeaves> for TaprootAvailableLeaves
impl PartialEq<TaprootAvailableLeaves> for TaprootAvailableLeaves
source§fn eq(&self, other: &TaprootAvailableLeaves) -> bool
fn eq(&self, other: &TaprootAvailableLeaves) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TaprootAvailableLeaves> for TaprootAvailableLeaves
impl PartialOrd<TaprootAvailableLeaves> for TaprootAvailableLeaves
source§fn partial_cmp(&self, other: &TaprootAvailableLeaves) -> Option<Ordering>
fn partial_cmp(&self, other: &TaprootAvailableLeaves) -> 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 Eq for TaprootAvailableLeaves
impl StructuralEq for TaprootAvailableLeaves
impl StructuralPartialEq for TaprootAvailableLeaves
Auto Trait Implementations§
impl RefUnwindSafe for TaprootAvailableLeaves
impl Send for TaprootAvailableLeaves
impl Sync for TaprootAvailableLeaves
impl Unpin for TaprootAvailableLeaves
impl UnwindSafe for TaprootAvailableLeaves
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