pub enum Error<T> {
Unexpected(T),
Expected(Info<T>),
Message(Info<T>),
Other(Box<dyn StdError + Send>),
}
Expand description
Enum used to store information about an error that has occured
Variants§
Unexpected(T)
Error indicating an unexpected token has been encountered in the stream
Expected(Info<T>)
Error indicating that the parser expected something else
Message(Info<T>)
Generic message
Other(Box<dyn StdError + Send>)
Variant for containing other types of errors
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Error<T>
impl<T> Send for Error<T>where
T: Send,
impl<T> !Sync for Error<T>
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> !UnwindSafe for Error<T>
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