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: usizeRaw seek index. This point is the index element of the file as a stream. 0 indexed
line: usizethe line number of the point. 0 indexed
col: usizethe 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 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