rustc_data_structures::sync

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