pub enum Event<'r, 'a> {
Start(StartElement<'r, 'a>),
End(EndElement<'r, 'a>),
Text(Text<'a>),
Comment(Comment<'a>),
ProcessingInstruction(ProcessingInstruction<'a>),
}Expand description
One event of a document, in document order. 'r is the borrow of the reader
(names’ namespaces and attributes live in it until the next event); 'a is the
text read.
Variants§
Start(StartElement<'r, 'a>)
A start tag or an empty-element tag. An empty-element tag is followed at once by
its Event::End.
End(EndElement<'r, 'a>)
An end tag, or the end of an empty-element tag.
Text(Text<'a>)
Character data or a CDATA section. Adjacent text events (character data, references, CDATA sections not separated by markup) make one text node of the data model.
Comment(Comment<'a>)
A comment.
ProcessingInstruction(ProcessingInstruction<'a>)
A processing instruction.
Trait Implementations§
Auto Trait Implementations§
impl<'r, 'a> Forget for Event<'r, 'a>
impl<'r, 'a> Freeze for Event<'r, 'a>
impl<'r, 'a> RefUnwindSafe for Event<'r, 'a>
impl<'r, 'a> Send for Event<'r, 'a>
impl<'r, 'a> Sync for Event<'r, 'a>
impl<'r, 'a> Unpin for Event<'r, 'a>
impl<'r, 'a> UnsafeUnpin for Event<'r, 'a>
impl<'r, 'a> UnwindSafe for Event<'r, '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