pub trait Visitor<'v>: Sized {
Show 19 methods
// Provided methods
fn visit_ast(&mut self, a: &'v Ast) { ... }
fn visit_file(&mut self, a: &'v File) { ... }
fn visit_global(&mut self, g: &'v Global) { ... }
fn visit_trait(&mut self, t: &'v Trait) { ... }
fn visit_impl(&mut self, i: &'v Impl) { ... }
fn visit_class(&mut self, c: &'v Class) { ... }
fn visit_module(&mut self, m: &'v Module) { ... }
fn visit_struct(&mut self, s: &'v Struct) { ... }
fn visit_const(&mut self, c: &'v Const) { ... }
fn visit_enum(&mut self, e: &'v Enum) { ... }
fn visit_struct_field(&mut self, f: &'v StructField) { ... }
fn visit_ctor(&mut self, m: &'v Function) { ... }
fn visit_method(&mut self, m: &'v Function) { ... }
fn visit_field(&mut self, p: &'v Field) { ... }
fn visit_fct(&mut self, f: &'v Function) { ... }
fn visit_param(&mut self, p: &'v Param) { ... }
fn visit_type(&mut self, t: &'v Type) { ... }
fn visit_stmt(&mut self, s: &'v Stmt) { ... }
fn visit_expr(&mut self, e: &'v Expr) { ... }
}
Provided Methods§
fn visit_ast(&mut self, a: &'v Ast)
fn visit_file(&mut self, a: &'v File)
fn visit_global(&mut self, g: &'v Global)
fn visit_trait(&mut self, t: &'v Trait)
fn visit_impl(&mut self, i: &'v Impl)
fn visit_class(&mut self, c: &'v Class)
fn visit_module(&mut self, m: &'v Module)
fn visit_struct(&mut self, s: &'v Struct)
fn visit_const(&mut self, c: &'v Const)
fn visit_enum(&mut self, e: &'v Enum)
fn visit_struct_field(&mut self, f: &'v StructField)
fn visit_ctor(&mut self, m: &'v Function)
fn visit_method(&mut self, m: &'v Function)
fn visit_field(&mut self, p: &'v Field)
fn visit_fct(&mut self, f: &'v Function)
fn visit_param(&mut self, p: &'v Param)
fn visit_type(&mut self, t: &'v Type)
fn visit_stmt(&mut self, s: &'v Stmt)
fn visit_expr(&mut self, e: &'v Expr)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.