pub struct TapTree(/* private fields */);
Expand description
Taproot Tree representing a finalized TaprootBuilder
(a complete binary tree)
Implementations§
Source§impl TapTree
impl TapTree
Sourcepub fn from_inner(inner: TaprootBuilder) -> Result<Self, TaprootBuilder>
pub fn from_inner(inner: TaprootBuilder) -> Result<Self, TaprootBuilder>
Convert a TaprootBuilder
into a tree if it is complete binary tree.
Returns the inner as Err if it is not a complete tree
Sourcepub fn into_inner(self) -> TaprootBuilder
pub fn into_inner(self) -> TaprootBuilder
Convert self into builder TaprootBuilder
. The builder is guaranteed to
be finalized.
Trait Implementations§
Source§impl Deserialize for TapTree
impl Deserialize for TapTree
impl Eq for TapTree
Auto Trait Implementations§
impl Freeze for TapTree
impl RefUnwindSafe for TapTree
impl Send for TapTree
impl Sync for TapTree
impl Unpin for TapTree
impl UnwindSafe for TapTree
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