Enum swc_html_visit::AstParentNodeRef
source · pub enum AstParentNodeRef<'ast> {
Document(&'ast Document, DocumentField),
DocumentFragment(&'ast DocumentFragment, DocumentFragmentField),
Child(&'ast Child, ChildField),
DocumentType(&'ast DocumentType, DocumentTypeField),
Element(&'ast Element, ElementField),
Attribute(&'ast Attribute, AttributeField),
Text(&'ast Text, TextField),
Comment(&'ast Comment, CommentField),
}
Variants§
Document(&'ast Document, DocumentField)
DocumentFragment(&'ast DocumentFragment, DocumentFragmentField)
Child(&'ast Child, ChildField)
DocumentType(&'ast DocumentType, DocumentTypeField)
Element(&'ast Element, ElementField)
Attribute(&'ast Attribute, AttributeField)
Text(&'ast Text, TextField)
Comment(&'ast Comment, CommentField)
Implementations§
source§impl AstParentNodeRef<'_>
impl AstParentNodeRef<'_>
pub fn kind(&self) -> AstParentKind
Trait Implementations§
source§impl<'ast> Clone for AstParentNodeRef<'ast>
impl<'ast> Clone for AstParentNodeRef<'ast>
source§fn clone(&self) -> AstParentNodeRef<'ast>
fn clone(&self) -> AstParentNodeRef<'ast>
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<'ast> Debug for AstParentNodeRef<'ast>
impl<'ast> Debug for AstParentNodeRef<'ast>
source§impl<'ast> PartialEq<AstParentNodeRef<'ast>> for AstParentNodeRef<'ast>
impl<'ast> PartialEq<AstParentNodeRef<'ast>> for AstParentNodeRef<'ast>
source§fn eq(&self, other: &AstParentNodeRef<'ast>) -> bool
fn eq(&self, other: &AstParentNodeRef<'ast>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.