pub enum Error<'input> {
Parser(Error<'input>),
MoreInput,
}
Expand description
An error type for this crate.
Variants§
Trait Implementations§
Source§impl<'input> Error for Error<'input>
impl<'input> Error for Error<'input>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl<'input> Ord for Error<'input>
impl<'input> Ord for Error<'input>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'input> PartialOrd for Error<'input>
impl<'input> PartialOrd for Error<'input>
impl<'input> Eq for Error<'input>
impl<'input> StructuralPartialEq for Error<'input>
Auto Trait Implementations§
impl<'input> Freeze for Error<'input>
impl<'input> RefUnwindSafe for Error<'input>
impl<'input> Send for Error<'input>
impl<'input> Sync for Error<'input>
impl<'input> Unpin for Error<'input>
impl<'input> UnwindSafe for Error<'input>
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