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
sourceimpl AstParentNodeRef<'_>
impl AstParentNodeRef<'_>
pub fn kind(&self) -> AstParentKind
Trait Implementations
sourceimpl<'ast> Clone for AstParentNodeRef<'ast>
impl<'ast> Clone for AstParentNodeRef<'ast>
sourcefn clone(&self) -> AstParentNodeRef<'ast>
fn clone(&self) -> AstParentNodeRef<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'ast> Debug for AstParentNodeRef<'ast>
impl<'ast> Debug for AstParentNodeRef<'ast>
sourceimpl<'ast> PartialEq<AstParentNodeRef<'ast>> for AstParentNodeRef<'ast>
impl<'ast> PartialEq<AstParentNodeRef<'ast>> for AstParentNodeRef<'ast>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AstParentNodeRef<'ast>) -> bool
fn ne(&self, other: &AstParentNodeRef<'ast>) -> bool
This method tests for !=
.
impl<'ast> Copy for AstParentNodeRef<'ast>
impl<'ast> StructuralPartialEq for AstParentNodeRef<'ast>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more