#[non_exhaustive]pub enum Event<'a> {
Start(Start<'a>),
End {
end: usize,
},
Text(Cow<'a, str>),
CData(Cow<'a, str>),
Comment(&'a str),
Pi {
target: &'a str,
data: &'a str,
},
Eof,
}Expand description
what the reader found next
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Start(Start<'a>)
a start tag
End
an end tag: the offset after its ‘>’ (the start tag’s end for an empty element)
Text(Cow<'a, str>)
character data with references replaced
CData(Cow<'a, str>)
a CDATA section’s content (line ends normalised)
Comment(&'a str)
a comment’s content
Pi
a processing instruction
Eof
the end of a well-formed document
Trait Implementations§
impl<'a> Eq for Event<'a>
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Forget for Event<'a>
impl<'a> Freeze for Event<'a>
impl<'a> Move for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>where
String: RefUnwindSafe,
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>where
&'a str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Attr<'a>>: UnsafeUnpin,
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