pub struct Lexer<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Lexer<'a>
impl<'a> Lexer<'a>
pub fn new(code: &'a [u8]) -> Lexer<'a>
pub fn source_range(&self) -> Loc
pub fn checkpoint(&self) -> LexerCheckpoint
pub fn since_checkpoint(&self, checkpoint: LexerCheckpoint) -> Loc
pub fn apply_checkpoint(&mut self, checkpoint: LexerCheckpoint)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Lexer<'a>
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