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

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

Represents a position inside some textual document.

Fields

row: u64

Row, counting from 0

column: u64

Column, counting from 0

Methods

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 Position for TextPosition[src]

impl Eq for TextPosition[src]

impl Clone for TextPosition[src]

impl PartialEq<TextPosition> for TextPosition[src]

impl Copy for TextPosition[src]

impl Debug for TextPosition[src]

impl Display for TextPosition[src]

Auto Trait Implementations

impl Send for TextPosition

impl Unpin for TextPosition

impl Sync for TextPosition

impl UnwindSafe for TextPosition

impl RefUnwindSafe for TextPosition

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]