pub enum TapTree<Pk>where
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
A taproot tree structure
Fields
Leaf(Arc<Miniscript<Pk, Tap>>)
A taproot leaf denoting a spending condition
Implementations§
Trait Implementations§
Source§impl<Pk> Debug for TapTree<Pk>where
Pk: MiniscriptKey,
impl<Pk> Debug for TapTree<Pk>where
Pk: MiniscriptKey,
Source§impl<Pk> Display for TapTree<Pk>where
Pk: MiniscriptKey,
impl<Pk> Display for TapTree<Pk>where
Pk: MiniscriptKey,
Source§impl<Pk> Liftable<Pk> for TapTree<Pk>where
Pk: MiniscriptKey,
impl<Pk> Liftable<Pk> for TapTree<Pk>where
Pk: MiniscriptKey,
Source§impl<Pk> Ord for TapTree<Pk>where
Pk: Ord + MiniscriptKey,
impl<Pk> Ord for TapTree<Pk>where
Pk: Ord + MiniscriptKey,
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> PartialOrd for TapTree<Pk>where
Pk: PartialOrd + MiniscriptKey,
impl<Pk> PartialOrd for TapTree<Pk>where
Pk: PartialOrd + MiniscriptKey,
impl<Pk> Eq for TapTree<Pk>where
Pk: Eq + MiniscriptKey,
impl<Pk> StructuralPartialEq for TapTree<Pk>where
Pk: MiniscriptKey,
Auto Trait Implementations§
impl<Pk> Freeze for TapTree<Pk>
impl<Pk> RefUnwindSafe for TapTree<Pk>where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Sha256: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash256: RefUnwindSafe,
<Pk as MiniscriptKey>::Ripemd160: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash160: RefUnwindSafe,
impl<Pk> Send for TapTree<Pk>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,
impl<Pk> Sync for TapTree<Pk>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,
impl<Pk> Unpin for TapTree<Pk>
impl<Pk> UnwindSafe for TapTree<Pk>where
Pk: RefUnwindSafe,
<Pk as MiniscriptKey>::Sha256: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash256: RefUnwindSafe,
<Pk as MiniscriptKey>::Ripemd160: RefUnwindSafe,
<Pk as MiniscriptKey>::Hash160: 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