[−][src]Struct xml::common::TextPosition
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 Clone for TextPosition
[src]
fn clone(&self) -> TextPosition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &TextPosition) -> bool
[src]
fn ne(&self, other: &TextPosition) -> bool
[src]
impl Position for TextPosition
[src]
fn position(&self) -> 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,
fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,