pub type PResult<O, E = ContextError> = Result<O, ErrMode<E>>;
Expand description
For use with Parser::parse_next
Ok(O)
is the parsed valueErr(ErrMode<E>)
is the error along with how to respond to it
By default, the error type (E
) is ContextError
.
When integrating into the result of the application, see
Aliased Type§
enum PResult<O, E = ContextError> {
Ok(O),
Err(ErrMode<E>),
}