Struct xml::common::TextPosition [] [src]

pub struct TextPosition {
    pub row: u64,
    pub column: u64,
}

Represents a position inside some textual document.

Fields

Row, counting from 0

Column, counting from 0

Methods

impl TextPosition
[src]

Creates a new position initialized to the beginning of the document

Advances the position in a line

Advances the position in a line to the next tab position

Advances the position to the beginning of the next line

Trait Implementations

impl Copy for TextPosition
[src]

impl Clone for TextPosition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TextPosition
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TextPosition
[src]

impl Debug for TextPosition
[src]

Formats the value using the given formatter.

impl Display for TextPosition
[src]

Formats the value using the given formatter. Read more

impl Position for TextPosition
[src]

Returns the current position or a position corresponding to the object.