Enum parse_result::Error
[−]
[src]
pub enum Error<E, P> { OriginalErr(E), ParseFailure(P), }
Represents the possible errors from calling parse
on Result
.
Variants
OriginalErr(E)
A pre-existing Err
from before attempting to parse.
ParseFailure(P)
An Err
generated as a result from parsing.
Trait Implementations
impl<E: Debug, P: Debug> Debug for Error<E, P>
[src]
impl<E: PartialEq, P: PartialEq> PartialEq for Error<E, P>
[src]
fn eq(&self, __arg_0: &Error<E, P>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error<E, P>) -> bool
This method tests for !=
.
impl<E: Eq, P: Eq> Eq for Error<E, P>
[src]
impl<E, P> StdError for Error<E, P> where
E: StdError,
P: StdError,
[src]
E: StdError,
P: StdError,
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl<E, P> Display for Error<E, P> where
E: Display,
P: Display,
[src]
E: Display,
P: Display,