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