Function winnow::combinator::backtrack_err
source · pub fn backtrack_err<I, O, E: ParseError<I>, F>(
parser: F
) -> impl Parser<I, O, E>where
I: Stream,
F: 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::branch::alt
.