[−][src]Function miniscript::expression::unary
pub fn unary<L, T, F>(term: &Tree<'_>, convert: F) -> Result<T, Error> where
L: FromTree,
F: FnOnce(L) -> T,
Attempts to parse an expression with exactly one child
pub fn unary<L, T, F>(term: &Tree<'_>, convert: F) -> Result<T, Error> where
L: FromTree,
F: FnOnce(L) -> T,
Attempts to parse an expression with exactly one child