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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Pk, Ctx, Ext> FromTree for Arc<Terminal<Pk, Ctx, Ext>>

source§

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

source§

impl<Pk, Ctx, Ext> FromTree for Arc<Miniscript<Pk, Ctx, Ext>>

source§

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

source§

impl<T: ExtParam> FromTree for Box<Expr<T>>

source§

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

source§

impl<T: ExtParam> FromTree for Box<ArithInner<T>>

source§

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

Implementors§

source§

impl FromTree for IdxExpr

source§

impl<Pk> FromTree for elements_miniscript::policy::concrete::Policy<Pk>

source§

impl<Pk> FromTree for elements_miniscript::policy::semantic::Policy<Pk>

source§

impl<Pk> FromTree for Pegin<Pk>

source§

impl<Pk> FromTree for LegacyPegin<Pk>

source§

impl<Pk> FromTree for Bare<Pk>

source§

impl<Pk> FromTree for Pkh<Pk>

source§

impl<Pk> FromTree for Sh<Pk>

source§

impl<Pk> FromTree for Wpkh<Pk>

source§

impl<Pk> FromTree for Wsh<Pk>

source§

impl<Pk, Ctx, Ext> FromTree for Terminal<Pk, Ctx, Ext>

source§

impl<Pk, Ctx, Ext> FromTree for Miniscript<Pk, Ctx, Ext>

source§

impl<Pk, Ext> FromTree for LegacyCSFSCov<Pk, Ext>

source§

impl<Pk, Ext> FromTree for Tr<Pk, Ext>

source§

impl<Pk, T> FromTree for Descriptor<Pk, T>

source§

impl<T: ExtParam> FromTree for CovOps<T>

source§

impl<T: ExtParam> FromTree for Expr<T>