rustc_data_structures::sync::parallel::enabled

Function par_map

source
pub fn par_map<I, T: IntoIterator<Item = I> + IntoParallelIterator<Item = I>, R: Send, C: FromIterator<R> + FromParallelIterator<R>>(
    t: T,
    map: impl Fn(I) -> R + DynSync + DynSend,
) -> C