Struct chisel_json::coords::Coords
source · 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
Implementations§
Trait Implementations§
source§impl Ord for Coords
impl Ord for Coords
source§impl PartialEq<Coords> for Coords
impl PartialEq<Coords> for Coords
source§impl PartialOrd<Coords> for Coords
impl PartialOrd<Coords> for Coords
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Coords
impl Eq for Coords
impl StructuralPartialEq for Coords
Auto Trait Implementations§
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