Trait FromTree

Source
pub trait FromTree: Sized {
    // Required method
    fn from_tree(top: &Tree<'_>) -> Result<Self, Error>;
}
Expand description

A trait for extracting a structure from a Tree representation in token form

Required Methods§

Source

fn from_tree(top: &Tree<'_>) -> Result<Self, Error>

Extract a structure from Tree representation

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Pk: FromStrKey, Ctx: ScriptContext> FromTree for Arc<Terminal<Pk, Ctx>>

Source§

fn from_tree(top: &Tree<'_>) -> Result<Arc<Terminal<Pk, Ctx>>, Error>

Source§

impl<Pk: FromStrKey, Ctx: ScriptContext> FromTree for Arc<Miniscript<Pk, Ctx>>

Source§

fn from_tree(top: &Tree<'_>) -> Result<Arc<Miniscript<Pk, Ctx>>, Error>

Implementors§

Source§

impl<Pk: FromStrKey> FromTree for Descriptor<Pk>

Source§

impl<Pk: FromStrKey> FromTree for miniscript::policy::concrete::Policy<Pk>

Source§

impl<Pk: FromStrKey> FromTree for miniscript::policy::semantic::Policy<Pk>

Source§

impl<Pk: FromStrKey> FromTree for Bare<Pk>

Source§

impl<Pk: FromStrKey> FromTree for Pkh<Pk>

Source§

impl<Pk: FromStrKey> FromTree for Sh<Pk>

Source§

impl<Pk: FromStrKey> FromTree for Tr<Pk>

Source§

impl<Pk: FromStrKey> FromTree for Wpkh<Pk>

Source§

impl<Pk: FromStrKey> FromTree for Wsh<Pk>

Source§

impl<Pk: FromStrKey, Ctx: ScriptContext> FromTree for Terminal<Pk, Ctx>

Source§

impl<Pk: FromStrKey, Ctx: ScriptContext> FromTree for Miniscript<Pk, Ctx>