pub enum LexError<'s> {
InvalidSymbolTable(InvalidSymbolTableError<'s>),
InvalidClosingBracket {
open_pos: TextPos,
close_pos: TextPos,
},
UnclosedBracket {
open_pos: TextPos,
},
UnexpectedChar {
pos: TextPos,
c: char,
},
UnexpectedClosingBracket {
pos: TextPos,
c: char,
},
UnclosedString {
start_pos: TextPos,
},
InvalidEscapeDigit {
c: char,
pos: TextPos,
},
InvalidEscapeCode {
code: u32,
pos: TextPos,
},
InvalidEscapeChar {
c: char,
pos: TextPos,
},
InvalidUnicodeEscape {
pos: TextPos,
},
InvalidUnicodeEscapeSyntax {
pos: TextPos,
},
}
Variants
InvalidSymbolTable(InvalidSymbolTableError<'s>)
InvalidClosingBracket
Fields of InvalidClosingBracket
UnclosedBracket
Fields of UnclosedBracket
UnexpectedChar
Fields of UnexpectedChar
UnexpectedClosingBracket
Fields of UnexpectedClosingBracket
UnclosedString
Fields of UnclosedString
InvalidEscapeDigit
Fields of InvalidEscapeDigit
InvalidEscapeCode
Fields of InvalidEscapeCode
InvalidEscapeChar
Fields of InvalidEscapeChar
InvalidUnicodeEscape
Fields of InvalidUnicodeEscape
InvalidUnicodeEscapeSyntax
Fields of InvalidUnicodeEscapeSyntax
Trait Implementations
Formats the value using the given formatter.
fn eq(&self, __arg_0: &LexError<'s>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LexError<'s>) -> bool
This method tests for !=
.