pub trait Visitable<'text> {
// Required methods
fn apply_visitor<'ast, V: Visit<'ast, 'text> + ?Sized>(
&'ast self,
visitor: &mut V,
);
fn apply_visitor_to_children<'ast, V: Visit<'ast, 'text> + ?Sized>(
&'ast self,
visitor: &mut V,
);
}Required Methods§
sourcefn apply_visitor<'ast, V: Visit<'ast, 'text> + ?Sized>(
&'ast self,
visitor: &mut V,
)
fn apply_visitor<'ast, V: Visit<'ast, 'text> + ?Sized>( &'ast self, visitor: &mut V, )
Call the visitor method for this node on the visitor.
sourcefn apply_visitor_to_children<'ast, V: Visit<'ast, 'text> + ?Sized>(
&'ast self,
visitor: &mut V,
)
fn apply_visitor_to_children<'ast, V: Visit<'ast, 'text> + ?Sized>( &'ast self, visitor: &mut V, )
Call the visitor method for each child node on the visitor. This does not call the visitor method for this node itself.
Object Safety§
This trait is not object safe.