pub enum ParseEvent {
StartTag {
name: String,
attrs: Vec<Attribute>,
self_closing: bool,
span: Option<Span>,
},
EndTag {
name: String,
span: Option<Span>,
},
Text {
text: String,
span: Option<Span>,
},
ProcessingInstruction {
target: String,
data: String,
span: Option<Span>,
},
Comment {
text: String,
span: Option<Span>,
},
Doctype {
name: Option<String>,
public_id: Option<String>,
system_id: Option<String>,
span: Option<Span>,
},
ParseError {
code: String,
message: String,
span: Option<Span>,
},
}Variants§
Trait Implementations§
Source§impl Clone for ParseEvent
impl Clone for ParseEvent
Source§fn clone(&self) -> ParseEvent
fn clone(&self) -> ParseEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseEvent
impl Debug for ParseEvent
Source§impl PartialEq for ParseEvent
impl PartialEq for ParseEvent
impl Eq for ParseEvent
impl StructuralPartialEq for ParseEvent
Auto Trait Implementations§
impl Freeze for ParseEvent
impl RefUnwindSafe for ParseEvent
impl Send for ParseEvent
impl Sync for ParseEvent
impl Unpin for ParseEvent
impl UnsafeUnpin for ParseEvent
impl UnwindSafe for ParseEvent
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