[−][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...>
.
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,