pub struct Coords {
pub absolute: usize,
pub line: usize,
pub column: usize,
}
Expand description
A Coords represents a single location within the parser input
Fields§
§absolute: usize
The absolute character position
line: usize
The row position
column: usize
The column position
Trait Implementations§
Source§impl Ord for Coords
impl Ord for Coords
Source§impl PartialOrd for Coords
impl PartialOrd for Coords
impl Copy for Coords
impl Eq for Coords
impl StructuralPartialEq for Coords
Auto Trait Implementations§
impl Freeze for Coords
impl RefUnwindSafe for Coords
impl Send for Coords
impl Sync for Coords
impl Unpin for Coords
impl UnwindSafe for Coords
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