pub enum XmlEvent<'a> {
Start {
name: &'a str,
attrs: Vec<(&'a str, String)>,
},
End {
name: &'a str,
},
Text(String),
}Expand description
One token of the document.
Variants§
Start
<name …> — attributes in document order, values with entities
already decoded.
Fields
End
</name> or the implied close of a self-closing <name/>.
Text(String)
Character data or CDATA content. Entities are already decoded in character data; CDATA content arrives verbatim.
Trait Implementations§
impl<'a> StructuralPartialEq for XmlEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for XmlEvent<'a>
impl<'a> RefUnwindSafe for XmlEvent<'a>
impl<'a> Send for XmlEvent<'a>
impl<'a> Sync for XmlEvent<'a>
impl<'a> Unpin for XmlEvent<'a>
impl<'a> UnsafeUnpin for XmlEvent<'a>
impl<'a> UnwindSafe for XmlEvent<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more