pub struct Lexer { /* private fields */ }
Implementations
sourceimpl Lexer
impl Lexer
pub fn new(code: Vec<u8>) -> Lexer
pub fn source_range(&self) -> SourceRange
pub fn checkpoint(&self) -> LexerCheckpoint
pub fn since_checkpoint(&self, checkpoint: LexerCheckpoint) -> SourceRange
pub fn apply_checkpoint(&mut self, checkpoint: LexerCheckpoint)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Lexer
impl !Send for Lexer
impl !Sync for Lexer
impl Unpin for Lexer
impl UnwindSafe for Lexer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more