fn with_max_len(self, max: usize) -> SetupIter<Self> {
        SetupIter::new(
            self,
            Setup {
                max_len: Some(max),
                ..Default::default()
            },
        )
    }
/// Sets the maximum length of iterators desired to process in each
/// thread.  Rayon will try to split at least below this length,
/// unless that would put it below the length from `with_min_len()`.
/// For example, given min=10 and max=15, a length of 16 will not be
/// split any further.
///
/// Producers like `zip` and `interleave` will use lesser of the two
/// maximums.
/// Chained iterators and iterators inside `flat_map` may each use
/// their own maximum length.
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let max = (0..1_000_000)
///     .into_par_iter()
///     .with_max_len(1234)
///     .fold(|| 0, |acc, _| acc + 1) // count how many are in this segment
///     .max()
///     .exec()
///     .unwrap();
///
/// assert!(max <= 1234);
/// ```
Sets the maximum length of iterators desired to process in each
thread.  Rayon will try to split at least below this length,
unless that would put it below the length from `with_min_len()`.
For example, given min=10 and max=15, a length of 16 will not be
split any further.

Producers like `zip` and `interleave` will use lesser of the two
maximums.
Chained iterators and iterators inside `flat_map` may each use
their own maximum length.
Sets the maximum length of iterators desired to process in each thread . Rayon will try to split at least below this length unless that would put it below the length from ` with_min_len () ` . For example given min = 10 and max = 15 a length of 16 will not be split any further . Producers like ` zip ` and ` interleave ` will use lesser of the two maximums . Chained iterators and iterators inside ` flat_map ` may each use their own maximum length .
fn with_max_len(self, max: usize) -> SetupIter<Self> {
        SetupIter::new(
            self,
            Setup {
                max_len: Some(max),
                ..Default::default()
            },
        )
    }
fn with_max_len ( self , max : usize ) -> SetupIter < Self > { SetupIter :: new ( self , Setup { max_len : Some ( max ) , .. Default :: default ( ) } , ) }
Sets the maximum length of iterators desired to process in each
thread.
Sets the maximum length of iterators desired to process in each thread .
self
max
usize
self
max
usize
examples
None