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>,
);
}
path
only.Expand description
A trait implemented for types that can be visited using a visitor.
Required Methods§
Sourcefn visit_with_ast_path<'ast: 'r, 'r>(
&'ast self,
visitor: &mut V,
__ast_path: &mut AstNodePath<'r>,
)
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.
Sourcefn visit_children_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>, )
Visit children nodes of self`` with
visitor`.
Implementations on Foreign Types§
Source§impl<V, T> VisitWithAstPath<V> for Box<T>
impl<V, T> VisitWithAstPath<V> for Box<T>
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>, )
Source§impl<V, T> VisitWithAstPath<V> for Vec<T>
impl<V, T> VisitWithAstPath<V> for Vec<T>
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>, )
Source§impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for Option<Atom>
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>,
)
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)
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>
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>,
)
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)
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
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>,
)
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)
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_attribute
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_attribute_token
with self
.
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 CdataSection
impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for CdataSection
Source§fn visit_with_ast_path<'ast: 'r, 'r>(
&'ast self,
visitor: &mut V,
__ast_path: &mut AstNodePath<'r>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_cdata_section
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_child
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_comment
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_document
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_document_mode
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_document_type
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_element
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_namespace
with self
.
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 ProcessingInstruction
impl<V: ?Sized + VisitAstPath> VisitWithAstPath<V> for ProcessingInstruction
Source§fn visit_with_ast_path<'ast: 'r, 'r>(
&'ast self,
visitor: &mut V,
__ast_path: &mut AstNodePath<'r>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_processing_instruction
with self
.
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
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>,
)
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)
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_text
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_token
with self
.
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
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>,
)
fn visit_with_ast_path<'ast: 'r, 'r>( &'ast self, visitor: &mut V, __ast_path: &mut AstNodePath<'r>, )
Calls VisitAstPath::visit_token_and_span
with self
.
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]
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>,
)
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)
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]
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>,
)
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)
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]
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>,
)
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)