Skip to main content

StoreVisitorExt

Trait StoreVisitorExt 

Source
pub trait StoreVisitorExt: StoreVisitor {
    // Provided methods
    fn on_type_bound(&mut self, bound: &TypeBound) { ... }
    fn on_path(&mut self, path: &Path) { ... }
    fn on_expr_opt(&mut self, expr: Option<ExprId>) { ... }
    fn on_pat_opt(&mut self, pat: Option<PatId>) { ... }
    fn on_type_opt(&mut self, ty: Option<TypeRefId>) { ... }
    fn on_lifetime_opt(&mut self, lifetime: Option<LifetimeRefId>) { ... }
    fn on_generic_args_opt(&mut self, args: &Option<impl Borrow<GenericArgs>>) { ... }
    fn on_exprs(&mut self, exprs: impl IntoIterator<Item: Borrow<ExprId>>) { ... }
    fn on_pats(&mut self, pats: impl IntoIterator<Item: Borrow<PatId>>) { ... }
    fn on_types(&mut self, types: impl IntoIterator<Item: Borrow<TypeRefId>>) { ... }
    fn on_type_bounds(
        &mut self,
        bounds: impl IntoIterator<Item: Borrow<TypeBound>>,
    ) { ... }
}

Provided Methods§

Source

fn on_type_bound(&mut self, bound: &TypeBound)

Source

fn on_path(&mut self, path: &Path)

Source

fn on_expr_opt(&mut self, expr: Option<ExprId>)

Source

fn on_pat_opt(&mut self, pat: Option<PatId>)

Source

fn on_type_opt(&mut self, ty: Option<TypeRefId>)

Source

fn on_lifetime_opt(&mut self, lifetime: Option<LifetimeRefId>)

Source

fn on_generic_args_opt(&mut self, args: &Option<impl Borrow<GenericArgs>>)

Source

fn on_exprs(&mut self, exprs: impl IntoIterator<Item: Borrow<ExprId>>)

Source

fn on_pats(&mut self, pats: impl IntoIterator<Item: Borrow<PatId>>)

Source

fn on_types(&mut self, types: impl IntoIterator<Item: Borrow<TypeRefId>>)

Source

fn on_type_bounds(&mut self, bounds: impl IntoIterator<Item: Borrow<TypeBound>>)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§