pub struct Point {
pub line: usize,
pub column: usize,
pub offset: usize,
}
Expand description
One place in a source file.
Fields§
§line: usize
1-indexed integer representing a line in a source file.
column: usize
1-indexed integer representing a column in a source file.
offset: usize
0-indexed integer representing a character in a source file.
Implementations§
Trait Implementations§
source§impl PartialEq for Point
impl PartialEq for Point
impl Eq for Point
impl StructuralEq for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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