pub enum SyntaxError {
UnexpectedCharacter(char, Position),
UnmatchedQuotes(Position),
UnexpectedEndOfInput(Position),
MissingComma(Position),
InvalidNumber(String, Position),
UnexpectedToken(String, Position),
}
Variants§
UnexpectedCharacter(char, Position)
Unexpected character found in input.
UnmatchedQuotes(Position)
Unmatched quotes in a string.
UnexpectedEndOfInput(Position)
Input ended unexpectedly.
MissingComma(Position)
Comma is missing between JSON elements.
InvalidNumber(String, Position)
Invalid number format encountered.
UnexpectedToken(String, Position)
Unexpected token in the input.
Trait Implementations§
Source§impl Debug for SyntaxError
impl Debug for SyntaxError
Auto Trait Implementations§
impl Freeze for SyntaxError
impl RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin for SyntaxError
impl UnwindSafe for SyntaxError
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