Type Alias winnow::error::IResult

source ·
pub type IResult<I, O, E = InputError<I>> = PResult<(I, O), E>;
Expand description

Holds the result of Parser

  • Ok((I, O)) is the remaining input and the parsed value
  • Err(ErrMode<E>) is the error along with how to respond to it

By default, the error type (E) is InputError

Parser::parse is a top-level operation that can help convert to a Result for integrating with your application’s error reporting.

Aliased Type§

enum IResult<I, O, E = InputError<I>> {
    Ok((I, O)),
    Err(ErrMode<E>),
}

Variants§

§1.0.0

Ok((I, O))

Contains the success value

§1.0.0

Err(ErrMode<E>)

Contains the error value