swc_html_visit

Trait VisitWithAstPath

source
pub trait VisitWithAstPath<V: ?Sized + VisitAstPath> {
    // Required methods
    fn visit_with_ast_path<'ast: 'r, 'r>(
        &'ast self,
        visitor: &mut V,
        __ast_path: &mut AstNodePath<'r>,
    );
    fn visit_children_with_ast_path<'ast: 'r, 'r>(
        &'ast self,
        visitor: &mut V,
        __ast_path: &mut AstNodePath<'r>,
    );
}
Available on crate feature path only.
Expand description

A trait implemented for types that can be visited using a visitor.

Required Methods§

source

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls a visitor method (visitor.fold_xxx) with self.

source

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Visit children nodes of self`` with visitor`.

Implementations on Foreign Types§

source§

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

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V, T> VisitWithAstPath<V> for Vec<T>

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Option<Atom>

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_opt_atom with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Option<DocumentFragment>

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_opt_document_fragment with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Option<Namespace>

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_opt_namespace with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Option<Raw>

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_opt_raw with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Atom

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_atom with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Attribute

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for AttributeToken

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Child

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_child with self.

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Comment

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_comment with self.

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Document

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for DocumentFragment

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for DocumentMode

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for DocumentType

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Element

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_element with self.

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Namespace

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Raw

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_raw with self.

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Span

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_span with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Text

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_text with self.

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Token

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_token with self.

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for TokenAndSpan

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for [AttributeToken]

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_attribute_tokens with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for [Attribute]

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_attributes with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

source§

impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for [Child]

source§

fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Calls VisitAstPath::visit_childs with self. (Extra impl)

source§

fn visit_children_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )

Implementors§