Implement From<TapTree> for TaprootBuilder
This commit is contained in:
parent
410412ff01
commit
a12e7c73b6
|
@ -125,6 +125,13 @@ impl PartialEq for TapTree {
|
||||||
|
|
||||||
impl Eq for TapTree {}
|
impl Eq for TapTree {}
|
||||||
|
|
||||||
|
impl From<TapTree> for TaprootBuilder {
|
||||||
|
#[inline]
|
||||||
|
fn from(tree: TapTree) -> Self {
|
||||||
|
tree.into_builder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl TapTree {
|
impl TapTree {
|
||||||
/// Gets the inner node info as the builder is finalized.
|
/// Gets the inner node info as the builder is finalized.
|
||||||
pub fn node_info(&self) -> &NodeInfo {
|
pub fn node_info(&self) -> &NodeInfo {
|
||||||
|
|
Loading…
Reference in New Issue