Struct timi::frontend::Point
[−]
[src]
pub struct Point { pub index: usize, pub line: usize, pub col: usize, }
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
Methods
impl Point
[src]
fn new(index: usize, line: usize, col: usize) -> Point
fn as_range(&self) -> Range
convert the Point
to a Range
starting and ending at the same Point
Trait Implementations
impl Debug for Point
[src]
impl Clone for Point
[src]
fn clone(&self) -> Point
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more