pub enum Error<'a, 'f> {
UnexpectedToken(&'a [Tok<'a, 'f>], &'static str),
ReportedError,
}
Expand description
Parsing error
Variants§
UnexpectedToken(&'a [Tok<'a, 'f>], &'static str)
An unexpected token was encountered
Tuple Fields
ReportedError
An internal error that was handled. You should normally never see this variant when using the public API, and you can ignore it safely.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'f> Freeze for Error<'a, 'f>
impl<'a, 'f> RefUnwindSafe for Error<'a, 'f>
impl<'a, 'f> Send for Error<'a, 'f>
impl<'a, 'f> Sync for Error<'a, 'f>
impl<'a, 'f> Unpin for Error<'a, 'f>
impl<'a, 'f> UnwindSafe for Error<'a, 'f>
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