pub struct LexerPos {
pub offset: usize,
pub line: usize,
pub col: usize,
}Expand description
A lexer position record for backtracking.
Fields§
§offset: usizeByte offset
line: usizeLine number
col: usizeColumn number
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LexerPos
impl RefUnwindSafe for LexerPos
impl Send for LexerPos
impl Sync for LexerPos
impl Unpin for LexerPos
impl UnsafeUnpin for LexerPos
impl UnwindSafe for LexerPos
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