pub struct Loc(pub usize, pub usize);Expand description
Represents the location of a token in the input text, with line and column values
Format: Formats Loc as <line+1>:<column+1>.
Tuple Fields§
§0: usizeLine number (0-based index)
1: usizeColumn number (0-based index)
Trait Implementations§
impl Copy for Loc
Auto Trait Implementations§
impl Freeze for Loc
impl RefUnwindSafe for Loc
impl Send for Loc
impl Sync for Loc
impl Unpin for Loc
impl UnwindSafe for Loc
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