pub struct Lexer { /* private fields */ }
Implementations§
Source§impl Lexer
impl Lexer
pub fn is_eof(&self) -> bool
pub fn new(file_name: impl Into<String>) -> Self
pub fn get_file_name(&self) -> String
pub fn line(&self, line: usize) -> String
pub fn set_chars(&mut self, chars: Vec<char>)
pub fn next_token(&mut self) -> Option<(Token, Position)>
pub fn get_source(&self) -> Vec<char>
pub fn from_script( module_name: impl Into<String>, script: impl AsRef<str>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lexer
impl RefUnwindSafe for Lexer
impl Send for Lexer
impl Sync for Lexer
impl Unpin 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