[][src]Enum txml::Text

pub enum Text<'a> {
    Verbatim(&'a str),
    Escaped(&'a str),
}

A string that can contain XML entity references.

This type is an iterator of characters.
To convert to a string, use the Display impl.
To compare equality, use the PartialEq<str> impl.

Variants

Verbatim(&'a str)

Text interpreted as-is, without any replacements.

Escaped(&'a str)

Text interpreted with XML entity references.

Trait Implementations

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

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

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

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

impl<'a> Iterator for Text<'a>[src]

type Item = char

The type of the elements being iterated over.

impl<'a, 'b> PartialEq<&'b str> for Text<'a>[src]

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

impl<'a> PartialEq<str> for Text<'a>[src]

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

Auto Trait Implementations

impl<'a> Send for Text<'a>

impl<'a> Sync for Text<'a>

impl<'a> Unpin for Text<'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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.