pub enum Error<Alphabet> {
Slice(SliceError),
ExpectedToken(ExpectedTokenError<Alphabet>),
}Variants§
Slice(SliceError)
ExpectedToken(ExpectedTokenError<Alphabet>)
Implementations§
Trait Implementations§
Source§impl<Alphabet> Error for Error<Alphabet>
impl<Alphabet> Error for Error<Alphabet>
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<Alphabet> From<SliceError> for Error<Alphabet>
impl<Alphabet> From<SliceError> for Error<Alphabet>
Source§fn from(source: SliceError) -> Self
fn from(source: SliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Alphabet> Freeze for Error<Alphabet>where
Alphabet: Freeze,
impl<Alphabet> RefUnwindSafe for Error<Alphabet>where
Alphabet: RefUnwindSafe,
impl<Alphabet> Send for Error<Alphabet>where
Alphabet: Send,
impl<Alphabet> Sync for Error<Alphabet>where
Alphabet: Sync,
impl<Alphabet> Unpin for Error<Alphabet>where
Alphabet: Unpin,
impl<Alphabet> UnwindSafe for Error<Alphabet>where
Alphabet: 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