[][src]Struct xmlparser::StrSpan

#[must_use]pub struct StrSpan<'a> { /* fields omitted */ }

A string slice.

Like &str, but also contains the position in the input XML from which it was parsed.

Implementations

impl<'a> StrSpan<'a>[src]

pub fn start(&self) -> usize[src]

Returns the start position of the span.

pub fn end(&self) -> usize[src]

Returns the end position of the span.

pub fn range(&self) -> Range<usize>[src]

Returns the range of the span.

pub fn as_str(&self) -> &'a str[src]

Returns the span as a string slice

Trait Implementations

impl<'a> Clone for StrSpan<'a>[src]

impl<'a> Copy for StrSpan<'a>[src]

impl<'a> Debug for StrSpan<'a>[src]

impl<'a> Deref for StrSpan<'a>[src]

type Target = str

The resulting type after dereferencing.

impl<'a> Display for StrSpan<'a>[src]

impl<'a> Eq for StrSpan<'a>[src]

impl<'a> From<&'a str> for StrSpan<'a>[src]

impl<'a> From<StrSpan<'a>> for Stream<'a>[src]

impl<'a> Hash for StrSpan<'a>[src]

impl<'a> PartialEq<StrSpan<'a>> for StrSpan<'a>[src]

impl<'a> StructuralEq for StrSpan<'a>[src]

impl<'a> StructuralPartialEq for StrSpan<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for StrSpan<'a>

impl<'a> Send for StrSpan<'a>

impl<'a> Sync for StrSpan<'a>

impl<'a> Unpin for StrSpan<'a>

impl<'a> UnwindSafe for StrSpan<'a>

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.