Enum miniscript::descriptor::TapTree
source · pub enum TapTree<Pk: MiniscriptKey> {
Tree {
left: Arc<TapTree<Pk>>,
right: Arc<TapTree<Pk>>,
height: usize,
},
Leaf(Arc<Miniscript<Pk, Tap>>),
}
Expand description
A Taproot Tree representation.
Variants§
Tree
Fields
A taproot tree structure
Leaf(Arc<Miniscript<Pk, Tap>>)
A taproot leaf denoting a spending condition
Implementations§
Trait Implementations§
source§impl<Pk: MiniscriptKey> Debug for TapTree<Pk>
impl<Pk: MiniscriptKey> Debug for TapTree<Pk>
source§impl<Pk: MiniscriptKey> Display for TapTree<Pk>
impl<Pk: MiniscriptKey> Display for TapTree<Pk>
source§impl<Pk: MiniscriptKey> Liftable<Pk> for TapTree<Pk>
impl<Pk: MiniscriptKey> Liftable<Pk> for TapTree<Pk>
source§impl<Pk: Ord + MiniscriptKey> Ord for TapTree<Pk>
impl<Pk: Ord + MiniscriptKey> Ord for TapTree<Pk>
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> PartialEq<TapTree<Pk>> for TapTree<Pk>
impl<Pk: PartialEq + MiniscriptKey> PartialEq<TapTree<Pk>> for TapTree<Pk>
source§impl<Pk: PartialOrd + MiniscriptKey> PartialOrd<TapTree<Pk>> for TapTree<Pk>
impl<Pk: PartialOrd + MiniscriptKey> PartialOrd<TapTree<Pk>> for TapTree<Pk>
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> Eq for TapTree<Pk>
impl<Pk: MiniscriptKey> StructuralEq for TapTree<Pk>
impl<Pk: MiniscriptKey> StructuralPartialEq for TapTree<Pk>
Auto Trait Implementations§
impl<Pk> RefUnwindSafe for TapTree<Pk>where Pk: RefUnwindSafe, <Pk as MiniscriptKey>::Hash160: RefUnwindSafe, <Pk as MiniscriptKey>::Hash256: RefUnwindSafe, <Pk as MiniscriptKey>::Ripemd160: RefUnwindSafe, <Pk as MiniscriptKey>::Sha256: RefUnwindSafe,
impl<Pk> Send for TapTree<Pk>where Pk: Send + Sync, <Pk as MiniscriptKey>::Hash160: Send + Sync, <Pk as MiniscriptKey>::Hash256: Send + Sync, <Pk as MiniscriptKey>::Ripemd160: Send + Sync, <Pk as MiniscriptKey>::Sha256: Send + Sync,
impl<Pk> Sync for TapTree<Pk>where Pk: Send + Sync, <Pk as MiniscriptKey>::Hash160: Send + Sync, <Pk as MiniscriptKey>::Hash256: Send + Sync, <Pk as MiniscriptKey>::Ripemd160: Send + Sync, <Pk as MiniscriptKey>::Sha256: Send + Sync,
impl<Pk> Unpin for TapTree<Pk>
impl<Pk> UnwindSafe for TapTree<Pk>where Pk: RefUnwindSafe, <Pk as MiniscriptKey>::Hash160: RefUnwindSafe, <Pk as MiniscriptKey>::Hash256: RefUnwindSafe, <Pk as MiniscriptKey>::Ripemd160: RefUnwindSafe, <Pk as MiniscriptKey>::Sha256: 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