Struct xml::common::TextPosition [−][src]
Represents a position inside some textual document.
Fields
row: u64
Row, counting from 0
column: u64
Column, counting from 0
Implementations
impl TextPosition
[src]
impl TextPosition
[src]pub fn new() -> TextPosition
[src]
Creates a new position initialized to the beginning of the document
pub fn advance(&mut self, count: u8)
[src]
Advances the position in a line
pub fn advance_to_tab(&mut self, width: u8)
[src]
Advances the position in a line to the next tab position
pub fn new_line(&mut self)
[src]
Advances the position to the beginning of the next line
Trait Implementations
impl Clone for TextPosition
[src]
impl Clone for TextPosition
[src]fn clone(&self) -> TextPosition
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<TextPosition> for TextPosition
[src]
impl PartialEq<TextPosition> for TextPosition
[src]fn eq(&self, other: &TextPosition) -> bool
[src]
fn ne(&self, other: &TextPosition) -> bool
[src]
impl Position for TextPosition
[src]
impl Position for TextPosition
[src]