pub enum Event<'a, A = Vec<Attribute<'a>>> {
Declaration {
version: &'a str,
standalone: Option<bool>,
range: Range<usize>,
},
ProcessingInstruction {
target: &'a str,
content: Option<&'a str>,
range: Range<usize>,
},
Comment {
text: &'a str,
range: Range<usize>,
},
DocType {
name: &'a str,
range: Range<usize>,
},
Start(StartTag<'a, A>),
Empty(StartTag<'a, A>),
End {
name: Name<'a>,
range: Range<usize>,
},
Text {
text: &'a str,
range: Range<usize>,
},
CData {
text: &'a str,
range: Range<usize>,
},
Reference {
name: &'a str,
range: Range<usize>,
},
}Expand description
One lexical XML event.
Variants§
Declaration
XML declaration.
Fields
ProcessingInstruction
Processing instruction.
Fields
Comment
XML comment.
DocType
Complete document type declaration.
Fields
Start(StartTag<'a, A>)
Opening element tag.
Empty(StartTag<'a, A>)
Empty-element tag.
End
Closing element tag.
Text
Character data without general references.
CData
CDATA content.
Fields
Reference
A character or entity reference from character data.
Trait Implementations§
impl<'a, A: Eq> Eq for Event<'a, A>
impl<'a, A: PartialEq> StructuralPartialEq for Event<'a, A>
Auto Trait Implementations§
impl<'a, A> Freeze for Event<'a, A>
impl<'a, A> RefUnwindSafe for Event<'a, A>where
StartTag<'a, A>: RefUnwindSafe,
impl<'a, A> Send for Event<'a, A>
impl<'a, A> Sync for Event<'a, A>
impl<'a, A> Unpin for Event<'a, A>
impl<'a, A> UnsafeUnpin for Event<'a, A>where
StartTag<'a, A>: UnsafeUnpin,
impl<'a, A> UnwindSafe for Event<'a, A>where
StartTag<'a, A>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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