Enum quick_xml::events::Event [−][src]
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,
}Expand description
Event emitted by Reader::read_event.
Variants
Start tag (with attributes) <tag attr="value">.
Tuple Fields of Start
0: BytesStart<'a>End tag </tag>.
Tuple Fields of End
0: BytesEnd<'a>Empty element tag (with attributes) <tag attr="value" />.
Tuple Fields of Empty
0: BytesStart<'a>Character data between Start and End element.
Tuple Fields of Text
0: BytesText<'a>Comment <!-- ... -->.
Tuple Fields of Comment
0: BytesText<'a>CData <![CDATA[...]]>.
Tuple Fields of CData
0: BytesText<'a>XML declaration <?xml ...?>.
Tuple Fields of Decl
0: BytesDecl<'a>Processing instruction <?...?>.
Tuple Fields of PI
0: BytesText<'a>Doctype <!DOCTYPE...>.
Tuple Fields of DocType
0: BytesText<'a>End of XML document.
Implementations
Converts the event to an owned version, untied to the lifetime of buffer used when reading but incurring a new, separate allocation.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> UnwindSafe for Event<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more