Enum elements_miniscript::descriptor::TapTree
source · #[non_exhaustive]pub enum TapTree<Pk: MiniscriptKey, Ext: Extension = NoExt> {
Tree(Arc<TapTree<Pk, Ext>>, Arc<TapTree<Pk, Ext>>),
Leaf(Arc<Miniscript<Pk, Tap, Ext>>),
}
Expand description
A Taproot Tree representation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tree(Arc<TapTree<Pk, Ext>>, Arc<TapTree<Pk, Ext>>)
A taproot tree structure
Leaf(Arc<Miniscript<Pk, Tap, Ext>>)
A taproot leaf denoting a spending condition
Implementations§
Trait Implementations§
source§impl<Pk: Ord + MiniscriptKey, Ext: Ord + Extension> Ord for TapTree<Pk, Ext>
impl<Pk: Ord + MiniscriptKey, Ext: Ord + Extension> Ord for TapTree<Pk, Ext>
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<Pk: PartialEq + MiniscriptKey, Ext: PartialEq + Extension> PartialEq for TapTree<Pk, Ext>
impl<Pk: PartialEq + MiniscriptKey, Ext: PartialEq + Extension> PartialEq for TapTree<Pk, Ext>
source§impl<Pk: PartialOrd + MiniscriptKey, Ext: PartialOrd + Extension> PartialOrd for TapTree<Pk, Ext>
impl<Pk: PartialOrd + MiniscriptKey, Ext: PartialOrd + Extension> PartialOrd for TapTree<Pk, Ext>
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<Pk: Eq + MiniscriptKey, Ext: Eq + Extension> Eq for TapTree<Pk, Ext>
impl<Pk: MiniscriptKey, Ext: Extension> StructuralPartialEq for TapTree<Pk, Ext>
Auto Trait Implementations§
impl<Pk, Ext> Freeze for TapTree<Pk, Ext>
impl<Pk, Ext> RefUnwindSafe for TapTree<Pk, Ext>where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Sha256: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash256: RefUnwindSafe,
<Pk as MiniscriptKey>::Ripemd160: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash160: RefUnwindSafe,
Ext: RefUnwindSafe,
impl<Pk, Ext> Send for TapTree<Pk, Ext>where
Pk: Sync + Send,
<Pk as MiniscriptKey>::Sha256: Sync + Send,
<Pk as MiniscriptKey>::Hash256: Sync + Send,
<Pk as MiniscriptKey>::Ripemd160: Sync + Send,
<Pk as MiniscriptKey>::Hash160: Sync + Send,
Ext: Sync + Send,
impl<Pk, Ext> Sync for TapTree<Pk, Ext>where
Pk: Sync + Send,
<Pk as MiniscriptKey>::Sha256: Sync + Send,
<Pk as MiniscriptKey>::Hash256: Sync + Send,
<Pk as MiniscriptKey>::Ripemd160: Sync + Send,
<Pk as MiniscriptKey>::Hash160: Sync + Send,
Ext: Sync + Send,
impl<Pk, Ext> Unpin for TapTree<Pk, Ext>
impl<Pk, Ext> UnwindSafe for TapTree<Pk, Ext>where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Sha256: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash256: RefUnwindSafe,
<Pk as MiniscriptKey>::Ripemd160: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash160: RefUnwindSafe,
Ext: RefUnwindSafe,
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