[−][src]Enum quick_xml::events::Event
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> Clone for Event<'a>
[src]
fn clone(&self) -> Event<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> AsRef<Event<'a>> for Event<'a>
[src]
impl<'a> Debug for Event<'a>
[src]
impl<'a> Deref for Event<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,