You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Limit the with_min_len method to those parallel wrappers where it would not shadow a trait method
Additionally, the min_len field does not affect those parallel iterators which
are indexed as the splitting positions are chosen by Rayon which has its own
`with_min_len` method to achieve the same effect.
Copy file name to clipboardExpand all lines: src/parallel/par.rs
+26-11Lines changed: 26 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -24,16 +24,6 @@ pub struct Parallel<I> {
24
24
min_len:usize,
25
25
}
26
26
27
-
impl<I>Parallel<I>{
28
-
/// Sets the minimum number of elements desired to process in each job. This will not be split any smaller than this length, but of course a producer could already be smaller to begin with.
/// Sets the minimum number of elements desired to process in each job. This will not be split any smaller than this length, but of course a producer could already be smaller to begin with.
/// Sets the minimum number of elements desired to process in each job. This will not be split any smaller than this length, but of course a producer could already be smaller to begin with.
310
+
pubfnwith_min_len(self,min_len:usize) -> Self{
311
+
Self{
312
+
min_len,
313
+
..self
314
+
}
315
+
}
316
+
}
317
+
303
318
/// A parallel iterator (unindexed) that produces the splits of the array
0 commit comments