Struct bpstd::TapTreeBuilder 
source · pub struct TapTreeBuilder { /* private fields */ }Implementations§
source§impl TapTreeBuilder
 
impl TapTreeBuilder
pub fn new() -> TapTreeBuilder
pub fn with_capacity(capacity: usize) -> TapTreeBuilder
pub fn is_finalized(&self) -> bool
pub fn push_leaf(&mut self, leaf: LeafInfo) -> Result<bool, FinalizedTree>
pub fn finish(self) -> Result<TapTree, UnfinalizedTree>
Trait Implementations§
source§impl Clone for TapTreeBuilder
 
impl Clone for TapTreeBuilder
source§fn clone(&self) -> TapTreeBuilder
 
fn clone(&self) -> TapTreeBuilder
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 Debug for TapTreeBuilder
 
impl Debug for TapTreeBuilder
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
source§impl PartialEq for TapTreeBuilder
 
impl PartialEq for TapTreeBuilder
source§fn eq(&self, other: &TapTreeBuilder) -> bool
 
fn eq(&self, other: &TapTreeBuilder) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for TapTreeBuilder
impl StructuralPartialEq for TapTreeBuilder
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
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.