Type Alias nom::IResult

source ·
pub type IResult<I, O, E = (I, ErrorKind)> = Result<(I, O), Err<E>>;
Expand description

Holds the result of parsing functions

It depends on I, the input type, O, the output type, and E, the error type (by default u32)

The Ok side is an enum containing the remainder of the input (the part of the data that was not parsed) and the produced value. The Err side contains an instance of nom::Err.

Aliased Type§

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

Variants§

§1.0.0

Ok((I, O))

Contains the success value

§1.0.0

Err(Err<E>)

Contains the error value