pub struct Lexer {
pub line: usize,
pub column: usize,
/* private fields */
}Fields§
§line: usize§column: usizeImplementations§
Source§impl Lexer
impl Lexer
pub fn new(input: &str) -> Self
pub fn next_token(&mut self) -> Result<Token, String>
pub fn next_token_with_pos(&mut self) -> Result<TokenWithPos, String>
pub fn tokenize(&mut self) -> Result<Vec<Token>, String>
pub fn tokenize_with_pos(&mut self) -> Result<Vec<TokenWithPos>, String>
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