pub enum Result {
Token(Token),
InvalidCharacter(char, Key),
EndOfLine,
EndOfInput,
}
Expand description
Result of calling Lexer::next.
Variants§
Token(Token)
A token.
InvalidCharacter(char, Key)
An invalid character appeared in the input.
EndOfLine
The end of a line was reached.
This is only reported from Lexer::next if its report_end_of_line
argument is true.
EndOfInput
The end of input was reached.
Auto Trait Implementations§
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnwindSafe for Result
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