Skip to main content

StoreVisitor

Trait StoreVisitor 

Source
pub trait StoreVisitor: Sized {
    // Provided methods
    fn on_expr(&mut self, expr: ExprId) { ... }
    fn on_anon_const_expr(&mut self, expr: ExprId) { ... }
    fn on_pat(&mut self, pat: PatId) { ... }
    fn on_type(&mut self, ty: TypeRefId) { ... }
    fn on_lifetime(&mut self, lifetime: LifetimeRefId) { ... }
    fn on_generic_args(&mut self, args: &GenericArgs) { ... }
}

Provided Methods§

Source

fn on_expr(&mut self, expr: ExprId)

Source

fn on_anon_const_expr(&mut self, expr: ExprId)

Source

fn on_pat(&mut self, pat: PatId)

Source

fn on_type(&mut self, ty: TypeRefId)

Source

fn on_lifetime(&mut self, lifetime: LifetimeRefId)

Source

fn on_generic_args(&mut self, args: &GenericArgs)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<V: StoreVisitor> StoreVisitor for &mut V

Source§

fn on_expr(&mut self, expr: ExprId)

Source§

fn on_anon_const_expr(&mut self, expr: ExprId)

Source§

fn on_pat(&mut self, pat: PatId)

Source§

fn on_type(&mut self, ty: TypeRefId)

Source§

fn on_lifetime(&mut self, lifetime: LifetimeRefId)

Source§

fn on_generic_args(&mut self, args: &GenericArgs)

Implementors§