deno_ast::swc::transforms::perf

Trait ParExplode

Source
pub trait ParExplode: Parallel {
    // Required methods
    fn after_one_stmt(&mut self, stmts: &mut Vec<Stmt>);
    fn after_one_module_item(&mut self, stmts: &mut Vec<ModuleItem>);
}

Required Methods§

Source

fn after_one_stmt(&mut self, stmts: &mut Vec<Stmt>)

Invoked after visiting each statements.

Implementor should not delete/prepend to stmts.

Source

fn after_one_module_item(&mut self, stmts: &mut Vec<ModuleItem>)

Invoked after visiting each statements.

Implementor should not delete/prepend to stmts.

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.

Implementors§