[][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<Pk> FromTree for Arc<Terminal<Pk>> where
    Pk: MiniscriptKey,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

impl<Pk> FromTree for Arc<Miniscript<Pk>> where
    Pk: MiniscriptKey,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

Loading content...

Implementors

impl<Pk> FromTree for Descriptor<Pk> where
    Pk: MiniscriptKey,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

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

Parse an expression tree into a descriptor

impl<Pk> FromTree for Terminal<Pk> where
    Pk: MiniscriptKey,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

impl<Pk> FromTree for miniscript::policy::concrete::Policy<Pk> where
    Pk: MiniscriptKey,
    <Pk as FromStr>::Err: ToString
[src]

impl<Pk> FromTree for miniscript::policy::semantic::Policy<Pk> where
    Pk: MiniscriptKey,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

impl<Pk> FromTree for Miniscript<Pk> where
    Pk: MiniscriptKey,
    <Pk as FromStr>::Err: ToString,
    <<Pk as MiniscriptKey>::Hash as FromStr>::Err: ToString
[src]

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

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

Loading content...