Type Alias IResult
pub type IResult<I, O, E = InputError<I>> = Result<(I, O), ErrMode<E>>;
Available on crate feature
dep_winnow
only.Expand description
For use with Parser::parse_peek
which allows the input stream to be threaded through a
parser.
Ok((I, O))
is the remaining input and the parsed valueErr(ErrMode<E>)
is the error along with how to respond to it
By default, the error type (E
) is InputError
When integrating into the result of the application, see
Aliased Type§
enum IResult<I, O, E = InputError<I>> {
Ok((I, O)),
Err(ErrMode<E>),
}