Struct erl_tokenize::Position
[−]
[src]
pub struct Position { /* fields omitted */ }
Position of token.
Methods
impl Position
[src]
fn new() -> Position
Returns an initial position.
fn offset(&self) -> usize
Returns an offset from the beginning of the buffer.
fn line(&self) -> usize
Returns a line number from the beginning of the buffer (1-based).
fn column(&self) -> usize
Returns a column number from the beginning of the line (1-based).
fn step(&mut self, witdh: usize)
Step a position.
fn new_line(&mut self)
Step a position as a newline.
Trait Implementations
impl Debug for Position
[src]
impl Clone for Position
[src]
fn clone(&self) -> Position
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