Struct xml::common::TextPosition
[−]
[src]
pub struct TextPosition { pub row: u64, pub column: u64, }
Represents a position inside some textual document.
Fields
row | Row, counting from 0 |
column | Column, counting from 0 |
Methods
impl TextPosition
fn new() -> TextPosition
Creates a new position initialized to the beginning of the document
fn advance(&mut self, count: u8)
Advances the position in a line
fn advance_to_tab(&mut self, width: u8)
Advances the position in a line to the next tab position
fn new_line(&mut self)
Advances the position to the beginning of the next line