Skip to main content

ToDescriptorTree

Trait ToDescriptorTree 

Source
pub trait ToDescriptorTree<Pk: MiniscriptKey> {
    // Required method
    fn to_tree(&self) -> DescriptorTree<Pk>;
}
Expand description

A trait to construct a descriptor tree

Required Methods§

Source

fn to_tree(&self) -> DescriptorTree<Pk>

Returns a descriptor tree

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Pk: MiniscriptKey, Ctx: ScriptContext> ToDescriptorTree<Pk> for Miniscript<Pk, Ctx>

Source§

impl<Pk: MiniscriptKey> ToDescriptorTree<Pk> for Descriptor<Pk>

Source§

impl<Pk: MiniscriptKey> ToDescriptorTree<Pk> for Sh<Pk>

Source§

impl<Pk: MiniscriptKey> ToDescriptorTree<Pk> for Tr<Pk>

Source§

impl<Pk: MiniscriptKey> ToDescriptorTree<Pk> for Wsh<Pk>

Implementors§