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§
Ok((&'src str, T))
Contains the success value
Err(ParsingError<'src, Expectation>)
Contains the error value