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
[src]
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
Trait Implementations
impl Debug for TextPosition
[src]
impl Display for TextPosition
[src]
impl Position for TextPosition
[src]
fn position(&self) -> TextPosition
Returns the current position or a position corresponding to the object.
Derived Implementations
impl Eq for TextPosition
[src]
impl PartialEq for TextPosition
[src]
fn eq(&self, __arg_0: &TextPosition) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TextPosition) -> bool
This method tests for !=
.
impl Clone for TextPosition
[src]
fn clone(&self) -> TextPosition
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