Struct figtree::Position
[−]
[src]
pub struct Position { pub line: usize, pub pos: usize, }
Represents a position in the file
Fields
line: usize
line of the file
pos: usize
position in that line
Methods
impl Position
[src]
fn new() -> Self
Construct a new position at (0, 0)
fn at(line: usize, pos: usize) -> Self
Construct a new position at an arbitrary line and position