pub struct TapTreeBuilder { /* private fields */ }Expand description
Builder for constructing tap trees
Implementations§
Source§impl TapTreeBuilder
impl TapTreeBuilder
Sourcepub fn add_leaf_with_version(
self,
depth: u8,
version: LeafVersion,
script: Vec<u8>,
) -> Self
pub fn add_leaf_with_version( self, depth: u8, version: LeafVersion, script: Vec<u8>, ) -> Self
Add a leaf with custom version at a specific depth
Sourcepub fn build(self) -> Result<TapTree, TaprootError>
pub fn build(self) -> Result<TapTree, TaprootError>
Build the tap tree
Trait Implementations§
Source§impl Default for TapTreeBuilder
impl Default for TapTreeBuilder
Source§fn default() -> TapTreeBuilder
fn default() -> TapTreeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TapTreeBuilder
impl RefUnwindSafe for TapTreeBuilder
impl Send for TapTreeBuilder
impl Sync for TapTreeBuilder
impl Unpin for TapTreeBuilder
impl UnwindSafe for TapTreeBuilder
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