Enum sqparse::LexerErrorType
source · pub enum LexerErrorType<'s> {
EndOfInputInsideString,
EndOfLineInsideString,
EndOfInputInsideComment,
InvalidInput,
UnmatchedOpener {
open: TokenType<'s>,
close: TokenType<'s>,
},
}Expand description
Type of LexerError.
Implements std::fmt::Display to write a useful error message.
Variants§
EndOfInputInsideString
EndOfLineInsideString
The line ended in the middle of a non-verbatim string.
Example
"this text spans multiple
lines" ^ error
EndOfInputInsideComment
The input string ended in the middle of a multi-line comment.
Example
/* this comment never ends
^ error
InvalidInput
UnmatchedOpener
Trait Implementations§
source§impl<'s> Clone for LexerErrorType<'s>
impl<'s> Clone for LexerErrorType<'s>
source§fn clone(&self) -> LexerErrorType<'s>
fn clone(&self) -> LexerErrorType<'s>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more