pub type PResult<O, E = ContextError> = Result<O, ErrMode<E>>;
Expand description
Holds the result of Parser
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 ErrorKind
.
Parser::parse
is a top-level operation that can help convert to a Result
for integrating
with your application’s error reporting.
Aliased Type§
enum PResult<O, E = ContextError> {
Ok(O),
Err(ErrMode<E>),
}