Trait swc_html_visit::VisitAstPath

source ·
pub trait VisitAstPath {
Show 17 methods // Provided methods fn visit_atom<'ast: 'r, 'r>( &mut self, n: &'ast Atom, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_attribute<'ast: 'r, 'r>( &mut self, n: &'ast Attribute, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_attributes<'ast: 'r, 'r>( &mut self, n: &'ast [Attribute], __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_child<'ast: 'r, 'r>( &mut self, n: &'ast Child, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_children<'ast: 'r, 'r>( &mut self, n: &'ast [Child], __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_comment<'ast: 'r, 'r>( &mut self, n: &'ast Comment, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_document<'ast: 'r, 'r>( &mut self, n: &'ast Document, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_document_fragment<'ast: 'r, 'r>( &mut self, n: &'ast DocumentFragment, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_document_mode<'ast: 'r, 'r>( &mut self, n: &'ast DocumentMode, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_document_type<'ast: 'r, 'r>( &mut self, n: &'ast DocumentType, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_element<'ast: 'r, 'r>( &mut self, n: &'ast Element, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_namespace<'ast: 'r, 'r>( &mut self, n: &'ast Namespace, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_opt_atom<'ast: 'r, 'r>( &mut self, n: Option<&'ast Atom>, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_opt_document_fragment<'ast: 'r, 'r>( &mut self, n: Option<&'ast DocumentFragment>, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_opt_namespace<'ast: 'r, 'r>( &mut self, n: Option<&'ast Namespace>, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_span<'ast: 'r, 'r>( &mut self, n: &'ast Span, __ast_path: &mut AstNodePath<'r> ) { ... } fn visit_text<'ast: 'r, 'r>( &mut self, n: &'ast Text, __ast_path: &mut AstNodePath<'r> ) { ... }
}
Available on crate feature path only.

Provided Methods§

source

fn visit_atom<'ast: 'r, 'r>( &mut self, n: &'ast Atom, __ast_path: &mut AstNodePath<'r> )

source

fn visit_attribute<'ast: 'r, 'r>( &mut self, n: &'ast Attribute, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_attributes<'ast: 'r, 'r>( &mut self, n: &'ast [Attribute], __ast_path: &mut AstNodePath<'r> )

source

fn visit_child<'ast: 'r, 'r>( &mut self, n: &'ast Child, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_children<'ast: 'r, 'r>( &mut self, n: &'ast [Child], __ast_path: &mut AstNodePath<'r> )

source

fn visit_comment<'ast: 'r, 'r>( &mut self, n: &'ast Comment, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_document<'ast: 'r, 'r>( &mut self, n: &'ast Document, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_document_fragment<'ast: 'r, 'r>( &mut self, n: &'ast DocumentFragment, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_document_mode<'ast: 'r, 'r>( &mut self, n: &'ast DocumentMode, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_document_type<'ast: 'r, 'r>( &mut self, n: &'ast DocumentType, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_element<'ast: 'r, 'r>( &mut self, n: &'ast Element, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_namespace<'ast: 'r, 'r>( &mut self, n: &'ast Namespace, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

source

fn visit_opt_atom<'ast: 'r, 'r>( &mut self, n: Option<&'ast Atom>, __ast_path: &mut AstNodePath<'r> )

source

fn visit_opt_document_fragment<'ast: 'r, 'r>( &mut self, n: Option<&'ast DocumentFragment>, __ast_path: &mut AstNodePath<'r> )

source

fn visit_opt_namespace<'ast: 'r, 'r>( &mut self, n: Option<&'ast Namespace>, __ast_path: &mut AstNodePath<'r> )

source

fn visit_span<'ast: 'r, 'r>( &mut self, n: &'ast Span, __ast_path: &mut AstNodePath<'r> )

source

fn visit_text<'ast: 'r, 'r>( &mut self, n: &'ast Text, __ast_path: &mut AstNodePath<'r> )

This method can be overridden to customize the visitor behavior.

This calls VisitWithPath::visit_children_with_path on n by default. The default method visit children nodes with self.

Implementations on Foreign Types§

source§

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

source§

fn visit_atom<'ast: 'r, 'r>( &mut self, n: &'ast Atom, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attribute<'ast: 'r, 'r>( &mut self, n: &'ast Attribute, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attributes<'ast: 'r, 'r>( &mut self, n: &'ast [Attribute], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_child<'ast: 'r, 'r>( &mut self, n: &'ast Child, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_children<'ast: 'r, 'r>( &mut self, n: &'ast [Child], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_comment<'ast: 'r, 'r>( &mut self, n: &'ast Comment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document<'ast: 'r, 'r>( &mut self, n: &'ast Document, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_fragment<'ast: 'r, 'r>( &mut self, n: &'ast DocumentFragment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_mode<'ast: 'r, 'r>( &mut self, n: &'ast DocumentMode, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_type<'ast: 'r, 'r>( &mut self, n: &'ast DocumentType, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_element<'ast: 'r, 'r>( &mut self, n: &'ast Element, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_namespace<'ast: 'r, 'r>( &mut self, n: &'ast Namespace, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_atom<'ast: 'r, 'r>( &mut self, n: Option<&'ast Atom>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_document_fragment<'ast: 'r, 'r>( &mut self, n: Option<&'ast DocumentFragment>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_namespace<'ast: 'r, 'r>( &mut self, n: Option<&'ast Namespace>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_span<'ast: 'r, 'r>( &mut self, n: &'ast Span, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_text<'ast: 'r, 'r>( &mut self, n: &'ast Text, __ast_path: &mut AstNodePath<'r> )

source§

impl<A, B> VisitAstPath for Either<A, B>

source§

fn visit_atom<'ast: 'r, 'r>( &mut self, n: &'ast Atom, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attribute<'ast: 'r, 'r>( &mut self, n: &'ast Attribute, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attributes<'ast: 'r, 'r>( &mut self, n: &'ast [Attribute], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_child<'ast: 'r, 'r>( &mut self, n: &'ast Child, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_children<'ast: 'r, 'r>( &mut self, n: &'ast [Child], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_comment<'ast: 'r, 'r>( &mut self, n: &'ast Comment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document<'ast: 'r, 'r>( &mut self, n: &'ast Document, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_fragment<'ast: 'r, 'r>( &mut self, n: &'ast DocumentFragment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_mode<'ast: 'r, 'r>( &mut self, n: &'ast DocumentMode, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_type<'ast: 'r, 'r>( &mut self, n: &'ast DocumentType, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_element<'ast: 'r, 'r>( &mut self, n: &'ast Element, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_namespace<'ast: 'r, 'r>( &mut self, n: &'ast Namespace, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_atom<'ast: 'r, 'r>( &mut self, n: Option<&'ast Atom>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_document_fragment<'ast: 'r, 'r>( &mut self, n: Option<&'ast DocumentFragment>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_namespace<'ast: 'r, 'r>( &mut self, n: Option<&'ast Namespace>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_span<'ast: 'r, 'r>( &mut self, n: &'ast Span, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_text<'ast: 'r, 'r>( &mut self, n: &'ast Text, __ast_path: &mut AstNodePath<'r> )

source§

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

source§

fn visit_atom<'ast: 'r, 'r>( &mut self, n: &'ast Atom, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attribute<'ast: 'r, 'r>( &mut self, n: &'ast Attribute, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attributes<'ast: 'r, 'r>( &mut self, n: &'ast [Attribute], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_child<'ast: 'r, 'r>( &mut self, n: &'ast Child, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_children<'ast: 'r, 'r>( &mut self, n: &'ast [Child], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_comment<'ast: 'r, 'r>( &mut self, n: &'ast Comment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document<'ast: 'r, 'r>( &mut self, n: &'ast Document, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_fragment<'ast: 'r, 'r>( &mut self, n: &'ast DocumentFragment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_mode<'ast: 'r, 'r>( &mut self, n: &'ast DocumentMode, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_type<'ast: 'r, 'r>( &mut self, n: &'ast DocumentType, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_element<'ast: 'r, 'r>( &mut self, n: &'ast Element, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_namespace<'ast: 'r, 'r>( &mut self, n: &'ast Namespace, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_atom<'ast: 'r, 'r>( &mut self, n: Option<&'ast Atom>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_document_fragment<'ast: 'r, 'r>( &mut self, n: Option<&'ast DocumentFragment>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_namespace<'ast: 'r, 'r>( &mut self, n: Option<&'ast Namespace>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_span<'ast: 'r, 'r>( &mut self, n: &'ast Span, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_text<'ast: 'r, 'r>( &mut self, n: &'ast Text, __ast_path: &mut AstNodePath<'r> )

source§

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

source§

fn visit_atom<'ast: 'r, 'r>( &mut self, n: &'ast Atom, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attribute<'ast: 'r, 'r>( &mut self, n: &'ast Attribute, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_attributes<'ast: 'r, 'r>( &mut self, n: &'ast [Attribute], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_child<'ast: 'r, 'r>( &mut self, n: &'ast Child, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_children<'ast: 'r, 'r>( &mut self, n: &'ast [Child], __ast_path: &mut AstNodePath<'r> )

source§

fn visit_comment<'ast: 'r, 'r>( &mut self, n: &'ast Comment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document<'ast: 'r, 'r>( &mut self, n: &'ast Document, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_fragment<'ast: 'r, 'r>( &mut self, n: &'ast DocumentFragment, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_mode<'ast: 'r, 'r>( &mut self, n: &'ast DocumentMode, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_document_type<'ast: 'r, 'r>( &mut self, n: &'ast DocumentType, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_element<'ast: 'r, 'r>( &mut self, n: &'ast Element, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_namespace<'ast: 'r, 'r>( &mut self, n: &'ast Namespace, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_atom<'ast: 'r, 'r>( &mut self, n: Option<&'ast Atom>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_document_fragment<'ast: 'r, 'r>( &mut self, n: Option<&'ast DocumentFragment>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_opt_namespace<'ast: 'r, 'r>( &mut self, n: Option<&'ast Namespace>, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_span<'ast: 'r, 'r>( &mut self, n: &'ast Span, __ast_path: &mut AstNodePath<'r> )

source§

fn visit_text<'ast: 'r, 'r>( &mut self, n: &'ast Text, __ast_path: &mut AstNodePath<'r> )

Implementors§