Type Alias NomResult

Source
pub type NomResult<'a, T> = IResult<InputSpan<'a>, T, Error<'a>>;
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<SpannedError<&'a str>>),
}

Variants§

§1.0.0

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

Contains the success value

§1.0.0

Err(Err<SpannedError<&'a str>>)

Contains the error value