pub struct Lexer { /* private fields */ }Expand description
The lexer/tokenizer for SqlExprParser
Implementations§
Source§impl Lexer
impl Lexer
Sourcepub fn next_token(&mut self) -> ParseResult<Token>
pub fn next_token(&mut self) -> ParseResult<Token>
Get the next token from the input
Trait Implementations§
Source§impl TokenSource for Lexer
impl TokenSource for Lexer
Source§fn get_line_from_offset(&self, offset: usize) -> usize
fn get_line_from_offset(&self, offset: usize) -> usize
Get the line number for a given offset
Source§fn get_column_from_offset(&self, offset: usize) -> usize
fn get_column_from_offset(&self, offset: usize) -> usize
Get the column number for a given offset
Auto Trait Implementations§
impl Freeze for Lexer
impl RefUnwindSafe for Lexer
impl Send for Lexer
impl Sync for Lexer
impl Unpin for Lexer
impl UnsafeUnpin for Lexer
impl UnwindSafe for Lexer
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