pub enum Error {
Eof,
Expected(char),
ExpectedEof,
UnexpectedToken,
InvalidEscapeSequnce,
TrailingComma,
LeadingDecimal,
TrailingDecimal,
MissingDigitAfterNegative,
NumberOverflow,
}Expand description
Represents the type of error that occurred while parsing
Variants§
Eof
EOF while parsing
Expected(char)
Expected the given character but found something else
ExpectedEof
Found additional characters when expecting end of input
UnexpectedToken
Unexpected token while parsing
InvalidEscapeSequnce
Invalid escape sequence in string
TrailingComma
Comma after the last value of an array or an object
LeadingDecimal
Number starting with a decimal point
TrailingDecimal
Number ending with a decimal point
MissingDigitAfterNegative
Negative sign of a number not followed by a digit
NumberOverflow
Number is bigger than it can represent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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