pub enum ErrorKind {
Internal(Box<dyn Error + Send + Sync + 'static>),
UnexpectedEOF,
UnexpectedToken,
}
Expand description
The kind of Errors that can occur while parsing JSON.
Variants§
Internal(Box<dyn Error + Send + Sync + 'static>)
An internal programming error.
UnexpectedEOF
The Lexer
had no more tokens when more were expected.
UnexpectedToken
An unexpected token was emitted by the Lexer
.
Implementations§
Source§impl ErrorKind
impl ErrorKind
pub fn into_partial_error_without_token(self) -> PartialError
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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