[][src]Enum txml::Event

pub enum Event<'a> {
    Open(&'a str, Attrs<'a>),
    Close(&'a str),
    Pi(&'a str),
    Comment(&'a str),
    Text(Text<'a>),
}

An XML event.

Variants

Open(&'a str, Attrs<'a>)

An opening tag of an XML element.

Close(&'a str)

A closing tag of an XML element. This is also emitted after self-closing tags.

Pi(&'a str)

A processing instruction.

Comment(&'a str)

A comment.

Text(Text<'a>)

Character data.

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> Send for Event<'a>

impl<'a> Sync for Event<'a>

impl<'a> Unpin for Event<'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, 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.