nom::expr_res!
[−]
[src]
macro_rules! expr_res ( ($i:expr, $e:expr) => ( { match $e { Ok(output) => $crate::IResult::Done($i, output), Err(_) => $crate::IResult::Error($crate::Err::Position($crate::ErrorCode::ExprRes as u32, $i)) } } ); );
expr_res!(Result<E,O>) => I -> IResult<I, O>
evaluate an expression that returns a Result
See expr_opt for an example