pub enum Event<'a> {
Start(Start<'a>),
End(Name<'a>),
Text {
raw: &'a [u8],
cdata: bool,
},
Eof,
}Expand description
One token of the document.
Variants§
Start(Start<'a>)
End(Name<'a>)
An end tag, or the synthesized end of a self-closing element.
Text
Character data, still escaped unless it came from a CDATA section.
Eof
Trait Implementations§
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