Module rayon::range [] [src]

This module contains the parallel iterator types for ranges (Range<T>); this is the type for values created by a a..b expression. You will rarely need to interact with it directly unless you have need to name one of the iterator types.

use rayon::prelude::*;
 
let r = (0..100u64).into_par_iter()
                   .sum();
 
// compare result with sequential calculation
assert_eq!((0..100).sum::<u64>(), r);

Structs

Iter

Parallel iterator over a range, implemented for all integer types.