Type Alias shrimple_parser::ParsingResult

source ·
pub type ParsingResult<'src, T = (), Expectation = Infallible> = Result<(&'src str, T), ParsingError<'src, Expectation>>;
Expand description

The result of a parser.

Aliased Type§

enum ParsingResult<'src, T = (), Expectation = Infallible> {
    Ok((&'src str, T)),
    Err(ParsingError<'src, Expectation>),
}

Variants§

§1.0.0

Ok((&'src str, T))

Contains the success value

§1.0.0

Err(ParsingError<'src, Expectation>)

Contains the error value