Function winnow::combinator::backtrack_err
source ยท pub fn backtrack_err<I, O, E: ParserError<I>, F>(
parser: F,
) -> impl Parser<I, O, E>
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
.