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

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

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

fn from_tree(top: &Tree<'_>) -> Result<Miniscript<Pk, Ctx>, 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...