Function backtrack_err
pub fn backtrack_err<Input, Output, Error, ParseNext>(
parser: ParseNext,
) -> impl Parser<Input, Output, Error>
Available on crate feature
dep_winnow
only.Expand description
Transforms an ErrMode::Cut
(unrecoverable) to ErrMode::Backtrack
(recoverable)
This attempts the parse, allowing other parsers to be tried on failure, like with
winnow::combinator::alt
.