Macro abortable_parser::wrap_err
source · macro_rules! wrap_err {
($i:expr, $f:ident!( $( $args:tt )* ), $e:expr) => { ... };
($i:expr, $f:ident( $( $args:tt )* ), $e:expr ) => { ... };
($i:expr, $f:ident, $e:expr) => { ... };
}
Expand description
Wraps any Error return from a subparser in another error. Stores the position at this point in the parse tree allowing you to associate context with wrapped errors.