Skip to content

Commit

Permalink
Explain limitations correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed Sep 25, 2017
1 parent 286f82f commit 7b7560b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/iter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,8 @@ impl<T: ParallelIterator> IntoParallelIterator for T {
/// An iterator that supports "random access" to its data, meaning
/// that you can split it at arbitrary indices and draw data from
/// those points.
///
/// **Note:** Not implemented for `u64` and `i64`
pub trait IndexedParallelIterator: ParallelIterator {
/// Collects the results of the iterator into the specified
/// vector. The vector is always truncated before execution
Expand Down
6 changes: 4 additions & 2 deletions src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ use iter::*;
use iter::internal::*;
use std::ops::Range;

/// Parallel iterator over a range
/// Implemented for `u32`, `i32`, `usize` and `isize`.
/// Parallel iterator over a range, implemented for all integer types.
///
/// Note: The `zip` operation requires `IndexedParallelIterator`
/// which is not implemented for `u64` or `i64`.
///
/// ```
/// use rayon::prelude::*;
Expand Down

0 comments on commit 7b7560b

Please sign in to comment.