pub struct NodeInfo { /* private fields */ }
Expand description
Structure to represent the node information in taproot tree
Implementations§
source§impl NodeInfo
impl NodeInfo
Creates a new NodeInfo with omitted/hidden info
sourcepub fn new_leaf_with_ver(script: Script, ver: LeafVersion) -> Self
pub fn new_leaf_with_ver(script: Script, ver: LeafVersion) -> Self
Creates a new leaf with NodeInfo
sourcepub fn combine(a: Self, b: Self) -> Result<Self, TaprootBuilderError>
pub fn combine(a: Self, b: Self) -> Result<Self, TaprootBuilderError>
Combines two NodeInfo’s to create a new parent
Trait Implementations§
source§impl Ord for NodeInfo
impl Ord for NodeInfo
source§impl PartialEq for NodeInfo
impl PartialEq for NodeInfo
source§impl PartialOrd for NodeInfo
impl PartialOrd for NodeInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for NodeInfo
impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
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