Enum swc_html_visit::AstNodeRef
source · [−]pub enum AstNodeRef<'ast> {
Show 17 variants
Attribute(&'ast Attribute),
Child(&'ast Child),
Comment(&'ast Comment),
Document(&'ast Document),
DocumentFragment(&'ast DocumentFragment),
DocumentMode(&'ast DocumentMode),
DocumentType(&'ast DocumentType),
Element(&'ast Element),
JsWord(&'ast JsWord),
Namespace(&'ast Namespace),
OptDocumentFragment(Option<&'ast DocumentFragment>),
OptJsWord(Option<&'ast JsWord>),
OptNamespace(Option<&'ast Namespace>),
Span(&'ast Span),
Text(&'ast Text),
VecAttribute(&'ast [Attribute]),
VecChild(&'ast [Child]),
}
Variants
Attribute(&'ast Attribute)
Child(&'ast Child)
Comment(&'ast Comment)
Document(&'ast Document)
DocumentFragment(&'ast DocumentFragment)
DocumentMode(&'ast DocumentMode)
DocumentType(&'ast DocumentType)
Element(&'ast Element)
JsWord(&'ast JsWord)
Namespace(&'ast Namespace)
OptDocumentFragment(Option<&'ast DocumentFragment>)
OptJsWord(Option<&'ast JsWord>)
OptNamespace(Option<&'ast Namespace>)
Span(&'ast Span)
Text(&'ast Text)
VecAttribute(&'ast [Attribute])
VecChild(&'ast [Child])
Trait Implementations
sourceimpl<'ast> Clone for AstNodeRef<'ast>
impl<'ast> Clone for AstNodeRef<'ast>
sourcefn clone(&self) -> AstNodeRef<'ast>
fn clone(&self) -> AstNodeRef<'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 AstNodeRef<'ast>
impl<'ast> Debug for AstNodeRef<'ast>
sourceimpl<'ast> PartialEq<AstNodeRef<'ast>> for AstNodeRef<'ast>
impl<'ast> PartialEq<AstNodeRef<'ast>> for AstNodeRef<'ast>
sourcefn eq(&self, other: &AstNodeRef<'ast>) -> bool
fn eq(&self, other: &AstNodeRef<'ast>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AstNodeRef<'ast>) -> bool
fn ne(&self, other: &AstNodeRef<'ast>) -> bool
This method tests for !=
.
impl<'ast> Copy for AstNodeRef<'ast>
impl<'ast> StructuralPartialEq for AstNodeRef<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for AstNodeRef<'ast>
impl<'ast> Send for AstNodeRef<'ast>
impl<'ast> Sync for AstNodeRef<'ast>
impl<'ast> Unpin for AstNodeRef<'ast>
impl<'ast> UnwindSafe for AstNodeRef<'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