pub struct Lexer<'a, T> {
pub source: &'a Source<'a>,
pub position: usize,
pub current_char: Option<char>,
/* private fields */
}Expand description
Tokenizes the source code.
Fields§
§source: &'a Source<'a>The source code to be tokenized.
position: usizeThe current position in the source code.
current_char: Option<char>The current character being processed.
Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Lexer<'a, T>
impl<'a, T> !RefUnwindSafe for Lexer<'a, T>
impl<'a, T> !Send for Lexer<'a, T>
impl<'a, T> !Sync for Lexer<'a, T>
impl<'a, T> Unpin for Lexer<'a, T>
impl<'a, T> !UnwindSafe for Lexer<'a, T>
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