NomResult

Type Alias NomResult 

Source
pub type NomResult<'a, T> = IResult<InputSpan<'a>, T, Error>;
Expand description

Parsing outcome generalized by the type returned on success.

Aliased Type§

pub enum NomResult<'a, T> {
    Ok((LocatedSpan<&'a str>, T)),
    Err(Err<Error>),
}

Variants§

§1.0.0

Ok((LocatedSpan<&'a str>, T))

Contains the success value

§1.0.0

Err(Err<Error>)

Contains the error value