pub struct Lexer { /* private fields */ }Expand description
Lexer state
Implementations§
Source§impl Lexer
impl Lexer
Sourcepub fn with_bigint_threshold(input: &str, bigint_threshold: usize) -> Self
pub fn with_bigint_threshold(input: &str, bigint_threshold: usize) -> Self
Create a new lexer with a custom big-integer threshold
Sourcepub fn had_whitespace(&self) -> bool
pub fn had_whitespace(&self) -> bool
Check if whitespace was skipped before the last token
Sourcepub fn next_token(&mut self) -> Token
pub fn next_token(&mut self) -> Token
Get the next token
Auto Trait Implementations§
impl Forget for Lexer
impl Freeze for Lexer
impl Move 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