pub enum Error<E, P> {
OriginalErr(E),
ParseFailure(P),
}Expand description
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§
Source§impl<E, P> Error for Error<E, P>
impl<E, P> Error for Error<E, P>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
impl<E: Eq, P: Eq> Eq for Error<E, P>
impl<E, P> StructuralPartialEq for Error<E, P>
Auto Trait Implementations§
impl<E, P> Freeze for Error<E, P>
impl<E, P> RefUnwindSafe for Error<E, P>where
E: RefUnwindSafe,
P: RefUnwindSafe,
impl<E, P> Send for Error<E, P>
impl<E, P> Sync for Error<E, P>
impl<E, P> Unpin for Error<E, P>
impl<E, P> UnwindSafe for Error<E, P>where
E: UnwindSafe,
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more