pub trait VisitMutWithPath<V: ?Sized + VisitMutAstPath> {
    fn visit_mut_with_path(&mut self, v: &mut V, ast_path: &mut AstKindPath);
    fn visit_mut_children_with_path(
        &mut self,
        v: &mut V,
        ast_path: &mut AstKindPath
    ); }
Available on crate feature path only.
Expand description

A utility trait implemented for ast nodes, and allow to visit them with a visitor.

Required Methods

Calls a visitor method (v.visit_mut_xxx) with self and the ast path.

Visit children nodes with v and ast path appended [AstKind] of self. The ast path will be resotred when this method returns.

This is the default implementaton of a handler method in VisitMutAstPath.

Implementations on Foreign Types

Delegating implementation

Implementors