Skip to main content

DefaultVisitor

Trait DefaultVisitor 

Source
pub trait DefaultVisitor<T>: Visitor<T> {
    // Provided method
    fn default_visit_expr(&mut self, expr: &Expr) -> T { ... }
}
Expand description

Default visitor implementation that dispatches to specific visitor methods

This provides the standard dispatch logic for visit_expr. Most implementations will use the default visit_expr from this trait.

Provided Methods§

Source

fn default_visit_expr(&mut self, expr: &Expr) -> T

Default implementation of visit_expr that dispatches to specific methods

Implementors§