pub enum Event<'a> {
Start(StartEvent<'a>),
End(EndEvent<'a>),
Empty(StartEvent<'a>),
Text(TextEvent<'a>),
CData(CDataEvent<'a>),
Comment(CommentEvent<'a>),
Doctype(DoctypeEvent<'a>),
}Expand description
An event emitted by the Reader.
Variants§
Start(StartEvent<'a>)
An event emitted by start tags like <hello name="value">.
End(EndEvent<'a>)
An event emitted by end tags like </hello>.
Empty(StartEvent<'a>)
An event emitted by empty tags like <hello name="value"/>.
Text(TextEvent<'a>)
An event emitted by text content.
CData(CDataEvent<'a>)
An event emitted by cdata like <![CDATA[hello]]>.
Comment(CommentEvent<'a>)
An event emitted by comments like <!-- hello -->.
Doctype(DoctypeEvent<'a>)
An event emitted by doctype declarations like <!DOCTYPE hello>.
Trait Implementations§
impl<'a> Copy 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> 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