pub enum XmlEvent<'a> {
XmlDecl {
version: Cow<'a, str>,
encoding: Option<Cow<'a, str>>,
standalone: Option<bool>,
},
StartElement {
name: Cow<'a, str>,
attributes: Vec<Attribute<'a>>,
},
EndElement {
name: Cow<'a, str>,
},
EmptyElement {
name: Cow<'a, str>,
attributes: Vec<Attribute<'a>>,
},
Text(Cow<'a, str>),
CData(Cow<'a, str>),
Comment(Cow<'a, str>),
ProcessingInstruction {
target: Cow<'a, str>,
data: Option<Cow<'a, str>>,
},
Eof,
}Expand description
An XML event produced by the reader.
Variants§
XmlDecl
XML declaration:
Fields
StartElement
Start of an element:
EndElement
End of an element:
EmptyElement
Empty element:
Text(Cow<'a, str>)
Text content between elements.
CData(Cow<'a, str>)
CDATA section:
Comment(Cow<'a, str>)
Comment:
ProcessingInstruction
Processing instruction:
Fields
Eof
End of document.
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> 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