Enum bms_rs::lex::LexError [−][src]
#[non_exhaustive]
pub enum LexError {
UnknownCommand {
line: usize,
col: usize,
},
ExpectedToken {
line: usize,
col: usize,
message: &'static str,
},
}
Expand description
An error occurred when lexical analysis.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownCommand
Fields
line: usize
The line number of the command detected.
col: usize
The column number of the command detected.
An unknown command detected.
ExpectedToken
Fields
line: usize
The line number of the token expected.
col: usize
The column number of the token expected.
message: &'static str
What the expected is.
The token was expected but not found.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LexError
impl UnwindSafe for LexError
Blanket Implementations
Mutably borrows from an owned value. Read more