pub enum Event<'a> {
Open(&'a str, Attrs<'a>),
Close(&'a str),
Doctype(&'a str, &'a str),
Pi(&'a str),
Comment(&'a str),
Text(Text<'a>),
}Expand description
An XML event.
Variants§
Open(&'a str, Attrs<'a>)
An opening tag of an XML element.
Close(&'a str)
A closing tag of an XML element. This is also emitted after self-closing tags.
Doctype(&'a str, &'a str)
A doctype declaration.
Pi(&'a str)
A processing instruction.
Comment(&'a str)
A comment.
Text(Text<'a>)
Character data.
Trait Implementations§
impl<'a> Eq for Event<'a>
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