Enum swc_html_visit::AstParentKind
source · pub enum AstParentKind {
Document(DocumentField),
DocumentFragment(DocumentFragmentField),
Child(ChildField),
DocumentType(DocumentTypeField),
Element(ElementField),
Attribute(AttributeField),
Text(TextField),
Comment(CommentField),
}
Variants§
Document(DocumentField)
DocumentFragment(DocumentFragmentField)
Child(ChildField)
DocumentType(DocumentTypeField)
Element(ElementField)
Attribute(AttributeField)
Text(TextField)
Comment(CommentField)
Trait Implementations§
source§impl Clone for AstParentKind
impl Clone for AstParentKind
source§fn clone(&self) -> AstParentKind
fn clone(&self) -> AstParentKind
Returns a copy 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 AstParentKind
impl Debug for AstParentKind
source§impl<'de> Deserialize<'de> for AstParentKind
impl<'de> Deserialize<'de> for AstParentKind
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 Hash for AstParentKind
impl Hash for AstParentKind
source§impl Ord for AstParentKind
impl Ord for AstParentKind
source§fn cmp(&self, other: &AstParentKind) -> Ordering
fn cmp(&self, other: &AstParentKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl ParentKind for AstParentKind
impl ParentKind for AstParentKind
source§impl PartialEq<AstParentKind> for AstParentKind
impl PartialEq<AstParentKind> for AstParentKind
source§fn eq(&self, other: &AstParentKind) -> bool
fn eq(&self, other: &AstParentKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AstParentKind> for AstParentKind
impl PartialOrd<AstParentKind> for AstParentKind
source§fn partial_cmp(&self, other: &AstParentKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AstParentKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more