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][−]
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 Copy for TextPosition
[src]
impl Debug for TextPosition
[src][+]
impl Display for TextPosition
[src][+]
impl Eq for TextPosition
[src]
impl PartialEq<TextPosition> for TextPosition
[src][+]
impl Position for TextPosition
[src][+]
impl StructuralEq for TextPosition
[src]
impl StructuralPartialEq for TextPosition
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextPosition
impl Send for TextPosition
impl Sync for TextPosition
impl Unpin for TextPosition
impl UnwindSafe for TextPosition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,