Function sapio_miniscript::expression::unary
source · pub fn unary<L, T, F>(term: &Tree<'_>, convert: F) -> Result<T, Error>
Expand description
Attempts to parse an expression with exactly one child
pub fn unary<L, T, F>(term: &Tree<'_>, convert: F) -> Result<T, Error>
Attempts to parse an expression with exactly one child