pub struct Lexer<'a> {
pub line: usize,
pub column: usize,
pub last_line: usize,
pub last_column: usize,
pub diagnostics: Vec<PlacedError>,
pub success: bool,
/* private fields */
}
Fields§
§line: usize
§column: usize
§last_line: usize
§last_column: usize
§diagnostics: Vec<PlacedError>
§success: bool
Implementations§
§impl<'a> Lexer<'a>
impl<'a> Lexer<'a>
pub fn new(input: &'a str, fail_fast: bool) -> Result<Lexer<'a>, LexerError>
pub fn read_token(&mut self) -> Result<PlacedToken, LexerError>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Lexer<'a>
impl<'a> Send for Lexer<'a>
impl<'a> Sync for Lexer<'a>
impl<'a> Unpin for Lexer<'a>
impl<'a> UnwindSafe for Lexer<'a>
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