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 for AstParentNodeRef<'ast>
impl<'ast> PartialEq 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 ==
.impl<'ast> Copy for AstParentNodeRef<'ast>
impl<'ast> StructuralPartialEq for AstParentNodeRef<'ast>
Auto Trait Implementations§
impl<'ast> Freeze for AstParentNodeRef<'ast>
impl<'ast> RefUnwindSafe for AstParentNodeRef<'ast>
impl<'ast> Send for AstParentNodeRef<'ast>
impl<'ast> Sync for AstParentNodeRef<'ast>
impl<'ast> Unpin for AstParentNodeRef<'ast>
impl<'ast> UnwindSafe for AstParentNodeRef<'ast>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more