swc_core::ecma::transforms::base::perf

Trait ParVisit

pub trait ParVisit: Visit + Parallel {
    // Required method
    fn visit_par<N>(&mut self, threshold: usize, nodes: &[N])
       where N: Send + Sync + VisitWith<Self>;
}
Available on crate feature __ecma and (crate features __ecma_transforms or __testing_transform) only.

Required Methods§

fn visit_par<N>(&mut self, threshold: usize, nodes: &[N])
where N: Send + Sync + VisitWith<Self>,

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> ParVisit for T
where T: Visit + Parallel,