swc_ecma_transforms::perf

Trait ParExplode

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§

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

Invoked after visiting each statements.

Implementor should not delete/prepend to stmts.

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

Invoked after visiting each statements.

Implementor should not delete/prepend to stmts.

Object Safety§

This trait is not object safe.

Implementors§