pub enum Event<'a> {
Start {
name: &'a str,
attrs: &'a str,
empty: bool,
},
End {
name: &'a str,
},
Text {
text: &'a str,
raw: bool,
},
}Expand description
One event of the scan. Names are local names, without their prefix.
Variants§
Start
<name attrs> or, with empty, <name attrs/>.
End
</name>.
Text
Character data between tags, as written; raw for a CDATA section,
in which nothing is an entity reference.
Trait Implementations§
impl<'a> Copy for Event<'a>
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