1 2 3 4 5 6 7
use rayon::prelude::*; fn parallel_process(items: Vec<i32>) -> Vec<i32> { items.par_iter() .map(|x| x * 2) .collect() }