Skip to content

Commit

Permalink
Improve iterator adaptors documentation: add see also links.
Browse files Browse the repository at this point in the history
  • Loading branch information
gendx committed Nov 27, 2024
1 parent 3914c9d commit 5156d37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/iter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@ pub trait ParallelIteratorExt: ParallelIterator {

/// Runs `f` on each item of this parallel iterator.
///
/// See also [`for_each_init()`](Self::for_each_init) if you need to
/// initialize a per-thread value and pass it together with each item.
///
/// ```
/// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt};
/// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder};
Expand Down Expand Up @@ -730,6 +733,9 @@ pub trait ParallelIteratorExt: ParallelIterator {
/// Applies the function `f` to each item of this iterator, returning a
/// parallel iterator producing the mapped items.
///
/// See also [`map_init()`](Self::map_init) if you need to initialize a
/// per-thread value and pass it together with each item.
///
/// ```
/// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt};
/// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder};
Expand Down

0 comments on commit 5156d37

Please sign in to comment.