pub trait Parallel: Send + Sync {
// Required methods
fn create(&self) -> Self;
fn merge(&mut self, other: Self);
// Provided methods
fn after_stmts(&mut self, _stmts: &mut Vec<Stmt>) { ... }
fn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>) { ... }
}
Required Methods§
Provided Methods§
Sourcefn after_stmts(&mut self, _stmts: &mut Vec<Stmt>)
fn after_stmts(&mut self, _stmts: &mut Vec<Stmt>)
Invoked after visiting all Stmts, possibly in parallel.
Sourcefn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>)
fn after_module_items(&mut self, _stmts: &mut Vec<ModuleItem>)
Invoked after visiting all ModuleItems, possibly in parallel.
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.