#[repr(u8)]pub enum Action {
Show 19 variants
None = 0,
FlushText = 1,
StartTag = 2,
StartEndTag = 3,
EmitTagName = 4,
EmitEndTagName = 5,
StartAttrName = 6,
EmitAttrName = 7,
StartAttrValue = 8,
EmitAttrValue = 9,
EmitSelfClose = 10,
StartComment = 11,
EmitComment = 12,
StartDoctype = 13,
EmitDoctype = 14,
StartCData = 15,
EmitCData = 16,
EnterRawText = 17,
EmitOpenTagClose = 18,
}Expand description
Actions to perform during state transitions.
Variants§
None = 0
Do nothing.
FlushText = 1
Flush accumulated text as a Text token.
StartTag = 2
Begin recording an open tag name.
StartEndTag = 3
Begin recording a close tag name.
EmitTagName = 4
Emit the open tag (tag name is complete).
EmitEndTagName = 5
Emit the close tag name.
StartAttrName = 6
Begin recording an attribute name.
EmitAttrName = 7
Attribute name is complete.
StartAttrValue = 8
Begin recording attribute value.
EmitAttrValue = 9
Emit attribute value (quoted attribute complete).
EmitSelfClose = 10
Emit self-closing tag.
StartComment = 11
Begin comment recording.
EmitComment = 12
Emit comment token.
StartDoctype = 13
Begin doctype recording.
EmitDoctype = 14
Emit doctype token.
StartCData = 15
Begin CDATA recording.
EmitCData = 16
Emit CDATA token.
EnterRawText = 17
Enter raw text mode (script/style).
EmitOpenTagClose = 18
Emit open tag and close it (for >).
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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