Struct xmlparser::TextPos [−][src]
Position in text.
Position indicates a row/line and a column in the original text. Starting from 1:1.
Fields
row: u32
col: u32
Methods
impl TextPos
[src]
impl TextPos
pub fn new(row: u32, col: u32) -> TextPos
[src]
pub fn new(row: u32, col: u32) -> TextPos
Constructs a new TextPos
.
Should not be invoked manually, but rather via Stream::gen_error_pos
.
Trait Implementations
impl Clone for TextPos
[src]
impl Clone for TextPos
fn clone(&self) -> TextPos
[src]
fn clone(&self) -> TextPos
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for TextPos
[src]
impl Copy for TextPos
impl PartialEq for TextPos
[src]
impl PartialEq for TextPos
fn eq(&self, other: &TextPos) -> bool
[src]
fn eq(&self, other: &TextPos) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TextPos) -> bool
[src]
fn ne(&self, other: &TextPos) -> bool
This method tests for !=
.
impl Debug for TextPos
[src]
impl Debug for TextPos
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for TextPos
[src]
impl Display for TextPos