Trait swc_html_visit::Visit

source ·
pub trait Visit {
Show 17 methods // Provided methods fn visit_atom(&mut self, n: &Atom) { ... } fn visit_attribute(&mut self, n: &Attribute) { ... } fn visit_attributes(&mut self, n: &[Attribute]) { ... } fn visit_child(&mut self, n: &Child) { ... } fn visit_children(&mut self, n: &[Child]) { ... } fn visit_comment(&mut self, n: &Comment) { ... } fn visit_document(&mut self, n: &Document) { ... } fn visit_document_fragment(&mut self, n: &DocumentFragment) { ... } fn visit_document_mode(&mut self, n: &DocumentMode) { ... } fn visit_document_type(&mut self, n: &DocumentType) { ... } fn visit_element(&mut self, n: &Element) { ... } fn visit_namespace(&mut self, n: &Namespace) { ... } 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) { ... } fn visit_text(&mut self, n: &Text) { ... }
}

Provided Methods§

source

fn visit_atom(&mut self, n: &Atom)

source

fn visit_attribute(&mut self, n: &Attribute)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_attributes(&mut self, n: &[Attribute])

source

fn visit_child(&mut self, n: &Child)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_children(&mut self, n: &[Child])

source

fn visit_comment(&mut self, n: &Comment)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_document(&mut self, n: &Document)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_document_fragment(&mut self, n: &DocumentFragment)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_document_mode(&mut self, n: &DocumentMode)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_document_type(&mut self, n: &DocumentType)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_element(&mut self, n: &Element)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_namespace(&mut self, n: &Namespace)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

source

fn visit_opt_atom(&mut self, n: Option<&Atom>)

source

fn visit_opt_document_fragment(&mut self, n: Option<&DocumentFragment>)

source

fn visit_opt_namespace(&mut self, n: Option<&Namespace>)

source

fn visit_span(&mut self, n: &Span)

source

fn visit_text(&mut self, n: &Text)

This method can be overridden to customize the visitor behavior.

This calls VisitWith::visit_children_with on n by default. The default method visit children nodes with self.

Implementations on Foreign Types§

source§

impl<'a, V> Visit for &'a mut V
where V: ?Sized + Visit,

source§

impl<A, B> Visit for Either<A, B>
where A: Visit, B: Visit,

source§

impl<V> Visit for Box<V>
where V: ?Sized + Visit,

source§

impl<V> Visit for Optional<V>
where V: Visit,

Implementors§

source§

impl<V> Visit for All<V>
where V: VisitAll,