[][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]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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> Send for Event<'a>

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

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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