pub enum State {
Show 74 variants
Data,
RcData,
RawText,
ScriptData,
PlainText,
TagOpen,
EndTagOpen,
TagName,
RcDataLessThanSign,
RcDataEndTagOpen,
RcDataEndTagName,
RawTextLessThanSign,
RawTextEndTagOpen,
RawTextEndTagName,
ScriptDataLessThanSign,
ScriptDataEndTagOpen,
ScriptDataEndTagName,
ScriptDataEscapeStart,
ScriptDataEscapeStartDash,
ScriptDataEscaped,
ScriptDataEscapedDash,
ScriptDataEscapedDashDash,
ScriptDataEscapedLessThanSign,
ScriptDataEscapedEndTagOpen,
ScriptDataEscapedEndTagName,
ScriptDataDoubleEscapeStart,
ScriptDataDoubleEscaped,
ScriptDataDoubleEscapedDash,
ScriptDataDoubleEscapedDashDash,
ScriptDataDoubleEscapedLessThanSign,
ScriptDataDoubleEscapeEnd,
BeforeAttributeName,
AttributeName,
AfterAttributeName,
BeforeAttributeValue,
AttributeValueDoubleQuoted,
AttributeValueSingleQuoted,
AttributeValueUnquoted,
AfterAttributeValueQuoted,
SelfClosingStartTag,
BogusComment,
MarkupDeclarationOpen,
CommentStart,
CommentStartDash,
Comment,
CommentLessThanSign,
CommentLessThanSignBang,
CommentLessThanSignBangDash,
CommentLessThanSignBangDashDash,
CommentEndDash,
CommentEnd,
CommentEndBang,
Doctype,
BeforeDoctypeName,
DoctypeName,
AfterDoctypeName,
AfterDoctypePublicKeyword,
BeforeDoctypePublicIdentifier,
DoctypePublicIdentifierDoubleQuoted,
DoctypePublicIdentifierSingleQuoted,
AfterDoctypePublicIdentifier,
BetweenDoctypePublicAndSystemIdentifiers,
AfterDoctypeSystemKeyword,
BeforeDoctypeSystemIdentifier,
DoctypeSystemIdentifierDoubleQuoted,
DoctypeSystemIdentifierSingleQuoted,
AfterDoctypeSystemIdentifier,
BogusDoctype,
CdataSection,
CdataSectionBracket,
CdataSectionEnd,
ProcessingInstructionTarget,
BeforeProcessingInstructionData,
ProcessingInstructionData,
}Expand description
WHATWG HTML §13.2.5 のトークナイザ状態。
Variants§
Data
RcData
RawText
ScriptData
PlainText
TagOpen
EndTagOpen
TagName
RcDataLessThanSign
RcDataEndTagOpen
RcDataEndTagName
RawTextLessThanSign
RawTextEndTagOpen
RawTextEndTagName
ScriptDataLessThanSign
ScriptDataEndTagOpen
ScriptDataEndTagName
ScriptDataEscapeStart
ScriptDataEscapeStartDash
ScriptDataEscaped
ScriptDataEscapedDash
ScriptDataEscapedDashDash
ScriptDataEscapedLessThanSign
ScriptDataEscapedEndTagOpen
ScriptDataEscapedEndTagName
ScriptDataDoubleEscapeStart
ScriptDataDoubleEscaped
ScriptDataDoubleEscapedDash
ScriptDataDoubleEscapedDashDash
ScriptDataDoubleEscapedLessThanSign
ScriptDataDoubleEscapeEnd
BeforeAttributeName
AttributeName
AfterAttributeName
BeforeAttributeValue
AttributeValueDoubleQuoted
AttributeValueSingleQuoted
AttributeValueUnquoted
AfterAttributeValueQuoted
SelfClosingStartTag
BogusComment
MarkupDeclarationOpen
CommentStart
CommentStartDash
Comment
CommentLessThanSign
CommentLessThanSignBang
CommentLessThanSignBangDash
CommentLessThanSignBangDashDash
CommentEndDash
CommentEnd
CommentEndBang
Doctype
BeforeDoctypeName
DoctypeName
AfterDoctypeName
AfterDoctypePublicKeyword
BeforeDoctypePublicIdentifier
DoctypePublicIdentifierDoubleQuoted
DoctypePublicIdentifierSingleQuoted
AfterDoctypePublicIdentifier
BetweenDoctypePublicAndSystemIdentifiers
AfterDoctypeSystemKeyword
BeforeDoctypeSystemIdentifier
DoctypeSystemIdentifierDoubleQuoted
DoctypeSystemIdentifierSingleQuoted
AfterDoctypeSystemIdentifier
BogusDoctype
CdataSection
CdataSectionBracket
CdataSectionEnd
ProcessingInstructionTarget
処理命令の対象名(<?target)。2026-11-25
BeforeProcessingInstructionData
処理命令の対象名の後の空白。
ProcessingInstructionData
処理命令のデータ(?> または > まで)。
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.