Struct swc_html_visit::All
source · pub struct All<V> {
pub visitor: V,
}
Expand description
Visit all children nodes. This converts VisitAll
to Visit
. The type
parameter V
should implement VisitAll
and All<V>
implements Visit
.
Fields§
§visitor: V
Trait Implementations§
source§impl<V> PartialEq for All<V>where
V: PartialEq,
impl<V> PartialEq for All<V>where
V: PartialEq,
source§impl<V> Visit for All<V>where
V: VisitAll,
impl<V> Visit for All<V>where
V: VisitAll,
fn visit_atom(&mut self, n: &Atom)
source§fn visit_attribute(&mut self, n: &Attribute)
fn visit_attribute(&mut self, n: &Attribute)
This method can be overridden to customize the visitor behavior. Read more
fn visit_attributes(&mut self, n: &[Attribute])
source§fn visit_child(&mut self, n: &Child)
fn visit_child(&mut self, n: &Child)
This method can be overridden to customize the visitor behavior. Read more
fn visit_children(&mut self, n: &[Child])
source§fn visit_comment(&mut self, n: &Comment)
fn visit_comment(&mut self, n: &Comment)
This method can be overridden to customize the visitor behavior. Read more
source§fn visit_document(&mut self, n: &Document)
fn visit_document(&mut self, n: &Document)
This method can be overridden to customize the visitor behavior. Read more
source§fn visit_document_fragment(&mut self, n: &DocumentFragment)
fn visit_document_fragment(&mut self, n: &DocumentFragment)
This method can be overridden to customize the visitor behavior. Read more
source§fn visit_document_mode(&mut self, n: &DocumentMode)
fn visit_document_mode(&mut self, n: &DocumentMode)
This method can be overridden to customize the visitor behavior. Read more
source§fn visit_document_type(&mut self, n: &DocumentType)
fn visit_document_type(&mut self, n: &DocumentType)
This method can be overridden to customize the visitor behavior. Read more
source§fn visit_element(&mut self, n: &Element)
fn visit_element(&mut self, n: &Element)
This method can be overridden to customize the visitor behavior. Read more
source§fn visit_namespace(&mut self, n: &Namespace)
fn visit_namespace(&mut self, n: &Namespace)
This method can be overridden to customize the visitor behavior. Read more
fn visit_opt_atom(&mut self, n: Option<&Atom>)
fn visit_opt_document_fragment(&mut self, n: Option<&DocumentFragment>)
fn visit_opt_namespace(&mut self, n: Option<&Namespace>)
fn visit_span(&mut self, n: &Span)
source§fn visit_text(&mut self, n: &Text)
fn visit_text(&mut self, n: &Text)
This method can be overridden to customize the visitor behavior. Read more
impl<V> Copy for All<V>where
V: Copy,
impl<V> Eq for All<V>where
V: Eq,
impl<V> StructuralPartialEq for All<V>
Auto Trait Implementations§
impl<V> Freeze for All<V>where
V: Freeze,
impl<V> RefUnwindSafe for All<V>where
V: RefUnwindSafe,
impl<V> Send for All<V>where
V: Send,
impl<V> Sync for All<V>where
V: Sync,
impl<V> Unpin for All<V>where
V: Unpin,
impl<V> UnwindSafe for All<V>where
V: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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