pub struct Point {
pub index: usize,
pub line: usize,
pub col: usize,
}
Expand description
represents a position in a file, both in terms of (line, col)
and
in terms of seek index from the file
Fields§
§index: usize
Raw seek index. This point is the index
element of the file as a stream. 0 indexed
line: usize
the line number of the point. 0 indexed
col: usize
the column number of the point. 0 indexed
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Point
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