[][src]Enum quick_xml::events::Event

pub enum Event<'a> {
    Start(BytesStart<'a>),
    End(BytesEnd<'a>),
    Empty(BytesStart<'a>),
    Text(BytesText<'a>),
    Comment(BytesText<'a>),
    CData(BytesText<'a>),
    Decl(BytesDecl<'a>),
    PI(BytesText<'a>),
    DocType(BytesText<'a>),
    Eof,
}

Event emitted by Reader::read_event.

Variants

Start(BytesStart<'a>)

Start tag (with attributes) <tag attr="value">.

End(BytesEnd<'a>)

End tag </tag>.

Empty(BytesStart<'a>)

Empty element tag (with attributes) <tag attr="value" />.

Text(BytesText<'a>)

Character data between Start and End element.

Comment(BytesText<'a>)

Comment <!-- ... -->.

CData(BytesText<'a>)

CData <![CDATA[...]]>.

Decl(BytesDecl<'a>)

XML declaration <?xml ...?>.

PI(BytesText<'a>)

Processing instruction <?...?>.

DocType(BytesText<'a>)

Doctype <!DOCTYPE...>.

Eof

End of XML document.

Methods

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

pub fn into_owned(self) -> Event<'static>[src]

Converts the event to an owned version, untied to the lifetime of buffer used when reading but incurring a new, seperate allocation.

Trait Implementations

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

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

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

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

type Target = [u8]

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Event<'a>

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

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

impl<'a> Unpin for Event<'a>

impl<'a> UnwindSafe 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.