pub enum HtmlElementType {
Show 23 variants
TagOpen,
TagClose,
TagSlashOpen,
TagSelfClose,
TagName,
AttributeName,
AttributeValue,
Attribute,
Text,
Comment,
Equal,
Quote,
Doctype,
CData,
ProcessingInstruction,
EntityRef,
CharRef,
Whitespace,
Newline,
Document,
Element,
Eof,
Error,
}Expand description
HTML element types.
Variants§
TagOpen
Opening tag bracket <.
TagClose
Closing tag bracket >.
TagSlashOpen
Opening tag with slash </.
TagSelfClose
Self-closing tag slash />.
TagName
Tag name.
AttributeName
Attribute name.
AttributeValue
Attribute value.
Attribute
Attribute node.
Text
Text content.
Comment
Comment node.
Equal
Equal sign.
Quote
Quote.
Doctype
Doctype declaration.
CData
CDATA section.
ProcessingInstruction
Processing instruction.
EntityRef
Entity reference.
CharRef
Character reference.
Whitespace
Whitespace.
Newline
Newline.
Document
Document root.
Element
HTML element.
Eof
End of file.
Error
Error node.
Trait Implementations§
Source§impl Clone for HtmlElementType
impl Clone for HtmlElementType
Source§fn clone(&self) -> HtmlElementType
fn clone(&self) -> HtmlElementType
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 HtmlElementType
impl Debug for HtmlElementType
Source§impl<'de> Deserialize<'de> for HtmlElementType
impl<'de> Deserialize<'de> for HtmlElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for HtmlElementType
impl ElementType for HtmlElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<HtmlTokenType> for HtmlElementType
impl From<HtmlTokenType> for HtmlElementType
Source§fn from(token: HtmlTokenType) -> Self
fn from(token: HtmlTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for HtmlElementType
impl Hash for HtmlElementType
Source§impl PartialEq for HtmlElementType
impl PartialEq for HtmlElementType
Source§impl Serialize for HtmlElementType
impl Serialize for HtmlElementType
impl Copy for HtmlElementType
impl Eq for HtmlElementType
impl StructuralPartialEq for HtmlElementType
Auto Trait Implementations§
impl Freeze for HtmlElementType
impl RefUnwindSafe for HtmlElementType
impl Send for HtmlElementType
impl Sync for HtmlElementType
impl Unpin for HtmlElementType
impl UnsafeUnpin for HtmlElementType
impl UnwindSafe for HtmlElementType
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