Type Alias rustpython_parser::lexer::LexResult
source · pub type LexResult = Result<Spanned, LexicalError>;
Expand description
The result of lexing a token.
Aliased Type§
enum LexResult {
Ok((Tok, TextRange)),
Err(LexicalError),
}
Variants§
Ok((Tok, TextRange))
Contains the success value
Err(LexicalError)
Contains the error value