pub enum Event<'a> {
Declaration {
attrs: AttributeReader<'a>,
},
ProcessingInstruction {
name: &'a str,
attrs: AttributeReader<'a>,
},
Dtd {
content: &'a str,
},
CDATA {
data: &'a [u8],
},
Comment {
content: &'a str,
},
StartElement {
name: &'a str,
attrs: AttributeReader<'a>,
},
Text {
content: &'a str,
},
EndElement {
name: &'a str,
},
EndOfFile,
}Variants§
Declaration
Fields
§
attrs: AttributeReader<'a>ProcessingInstruction
Dtd
CDATA
Comment
StartElement
Text
EndElement
EndOfFile
Trait Implementations§
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
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> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'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