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§
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>>)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".