pub enum ParseErrorKind {
Lex(LexErrorKind),
Unexpected {
found: String,
expected: Vec<&'static str>,
},
UnexpectedEnd {
expected: Vec<&'static str>,
},
Unsupported(&'static str),
Refused(String),
LimitExceeded(&'static str),
}Expand description
Why a parse failed.
Variants§
Lex(LexErrorKind)
The lexer refused a byte sequence.
Unexpected
A token appeared where the grammar did not allow it.
Fields
UnexpectedEnd
The statement ended before the production did.
Unsupported(&'static str)
A construct the grammar has but this phase does not implement.
Refused(String)
A statement the schema refuses, in the reference’s own wording.
It is not a syntax error and does not read as one: the statement parsed
and the schema will not have it, which is what foreign key mismatch
says.
LimitExceeded(&'static str)
A hard limit was exceeded.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
impl Eq for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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