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

Raw seek index. This point is the index element of the file as a stream. 0 indexed

the line number of the point. 0 indexed

the column number of the point. 0 indexed

Methods

impl Point
[src]

convert the Point to a Range starting and ending at the same Point

Trait Implementations

impl Debug for Point
[src]

Formats the value using the given formatter.

impl Clone for Point
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Point
[src]