swc_xml_visit

Trait FoldWithAstPath

source
pub trait FoldWithAstPath<V: ?Sized + FoldAstPath> {
    // Required methods
    fn fold_with_ast_path(
        self,
        visitor: &mut V,
        __ast_path: &mut AstKindPath,
    ) -> Self;
    fn fold_children_with_ast_path(
        self,
        visitor: &mut V,
        __ast_path: &mut AstKindPath,
    ) -> Self;
}
Available on crate feature path only.
Expand description

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

Required Methods§

source

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

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

source

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Visit children nodes of self`` with visitor`.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<V, T> FoldWithAstPath<V> for Box<T>
where V: ?Sized + FoldAstPath, T: FoldWithAstPath<V>,

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Option<Atom>

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_opt_atom with self. (Extra impl)

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Option<Namespace>

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_opt_namespace with self. (Extra impl)

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Vec<Attribute>

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_attributes with self. (Extra impl)

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Vec<AttributeToken>

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_attribute_tokens with self. (Extra impl)

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Vec<Child>

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_childs with self. (Extra impl)

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Atom

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_atom with self. (Extra impl)

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Attribute

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_attribute with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for AttributeToken

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for CdataSection

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Child

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_child with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Comment

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_comment with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Document

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_document with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for DocumentMode

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for DocumentType

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Element

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_element with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Namespace

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_namespace with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for ProcessingInstruction

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Span

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_span with self. (Extra impl)

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Text

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_text with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for Token

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Calls FoldAstPath::fold_token with self.

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

impl<V: ?Sized + FoldAstPath> FoldWithAstPath<V> for TokenAndSpan

source§

fn fold_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

source§

fn fold_children_with_ast_path( self, visitor: &mut V, __ast_path: &mut AstKindPath, ) -> Self

Implementors§