[][src]Trait miniscript::expression::FromTree

pub trait FromTree: Sized {
    fn from_tree(top: &Tree) -> Result<Self, Error>;
}

Required methods

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

Loading content...

Implementations on Foreign Types

impl<P: FromStr> FromTree for Box<AstElem<P>> where
    <P as FromStr>::Err: ToString
[src]

Loading content...

Implementors

impl<P: Debug + FromStr> FromTree for Descriptor<P> where
    <P as FromStr>::Err: ToString
[src]

fn from_tree(top: &Tree) -> Result<Descriptor<P>, Error>[src]

Parse an expression tree into a descriptor

impl<P: Debug + FromStr> FromTree for Miniscript<P> where
    <P as FromStr>::Err: ToString
[src]

fn from_tree(top: &Tree) -> Result<Miniscript<P>, Error>[src]

Parse an expression tree into a Miniscript. As a general rule this should not be called directly; rather go through the output descriptor API.

impl<P: FromStr> FromTree for AstElem<P> where
    <P as FromStr>::Err: ToString
[src]

impl<P: FromStr> FromTree for Policy<P> where
    P::Err: ToString + Debug
[src]

Loading content...