pub struct TapTreeBuilder<L = LeafScript> { /* private fields */ }
Implementations§
Source§impl<L> TapTreeBuilder<L>
impl<L> TapTreeBuilder<L>
pub fn new() -> TapTreeBuilder<L>
pub fn with_capacity(capacity: usize) -> TapTreeBuilder<L>
pub fn is_finalized(&self) -> bool
pub fn with_leaf( self, leaf: LeafInfo<L>, ) -> Result<TapTreeBuilder<L>, FinalizedTree>
pub fn push_leaf(&mut self, leaf: LeafInfo<L>) -> Result<bool, FinalizedTree>
pub fn finish(self) -> Result<TapTree<L>, UnfinalizedTree>
Trait Implementations§
Source§impl<L> Clone for TapTreeBuilder<L>where
L: Clone,
impl<L> Clone for TapTreeBuilder<L>where
L: Clone,
Source§fn clone(&self) -> TapTreeBuilder<L>
fn clone(&self) -> TapTreeBuilder<L>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<L> Debug for TapTreeBuilder<L>where
L: Debug,
impl<L> Debug for TapTreeBuilder<L>where
L: Debug,
Source§impl<L> Default for TapTreeBuilder<L>where
L: Default,
impl<L> Default for TapTreeBuilder<L>where
L: Default,
Source§fn default() -> TapTreeBuilder<L>
fn default() -> TapTreeBuilder<L>
Returns the “default value” for a type. Read more
Source§impl<L> PartialEq for TapTreeBuilder<L>where
L: PartialEq,
impl<L> PartialEq for TapTreeBuilder<L>where
L: PartialEq,
impl<L> Eq for TapTreeBuilder<L>where
L: Eq,
impl<L> StructuralPartialEq for TapTreeBuilder<L>
Auto Trait Implementations§
impl<L> Freeze for TapTreeBuilder<L>
impl<L> RefUnwindSafe for TapTreeBuilder<L>where
L: RefUnwindSafe,
impl<L> Send for TapTreeBuilder<L>where
L: Send,
impl<L> Sync for TapTreeBuilder<L>where
L: Sync,
impl<L> Unpin for TapTreeBuilder<L>where
L: Unpin,
impl<L> UnwindSafe for TapTreeBuilder<L>where
L: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.