From b2a7609138b910d1c4ce55734a7600986efa7604 Mon Sep 17 00:00:00 2001 From: Guillaume Endignoux Date: Fri, 15 Nov 2024 17:21:16 +0100 Subject: [PATCH] Sort hidden imports in documentation. --- README.md | 14 +++++++------- src/iter/mod.rs | 36 ++++++++++++++++++------------------ src/iter/source/mod.rs | 28 ++++++++++++++-------------- src/iter/source/zip.rs | 8 ++++---- 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index d02b7c7..6039032 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ [![Crate](https://img.shields.io/crates/v/paralight.svg?logo=rust)](https://crates.io/crates/paralight) [![Documentation](https://img.shields.io/docsrs/paralight?logo=rust)](https://docs.rs/paralight) -[![Minimum Rust 1.75.0](https://img.shields.io/crates/msrv/paralight/0.0.4.svg?logo=rust&color=orange)](https://releases.rs/docs/1.75.0/) -[![Lines of Code](https://www.aschey.tech/tokei/github/gendx/paralight?category=code&branch=0.0.4)](https://github.com/gendx/paralight/tree/0.0.4) -[![Dependencies](https://deps.rs/crate/paralight/0.0.4/status.svg)](https://deps.rs/crate/paralight/0.0.4) -[![License](https://img.shields.io/crates/l/paralight/0.0.4.svg)](https://github.com/gendx/paralight/blob/0.0.4/LICENSE) -[![Codecov](https://codecov.io/gh/gendx/paralight/branch/0.0.4/graph/badge.svg)](https://codecov.io/gh/gendx/paralight/tree/0.0.4) -[![Build Status](https://github.com/gendx/paralight/actions/workflows/build.yml/badge.svg?branch=0.0.4)](https://github.com/gendx/paralight/actions/workflows/build.yml) -[![Test Status](https://github.com/gendx/paralight/actions/workflows/tests.yml/badge.svg?branch=0.0.4)](https://github.com/gendx/paralight/actions/workflows/tests.yml) +[![Minimum Rust 1.75.0](https://img.shields.io/badge/rust-1.75.0%2B-orange.svg?logo=rust)](https://releases.rs/docs/1.75.0/) +[![Lines of Code](https://www.aschey.tech/tokei/github/gendx/paralight?category=code&branch=main)](https://github.com/gendx/paralight) +[![Dependencies](https://deps.rs/repo/github/gendx/paralight/status.svg)](https://deps.rs/repo/github/gendx/paralight) +[![License](https://img.shields.io/crates/l/paralight.svg)](https://github.com/gendx/paralight/blob/main/LICENSE) +[![Codecov](https://codecov.io/gh/gendx/paralight/branch/main/graph/badge.svg)](https://app.codecov.io/gh/gendx/paralight/tree/main) +[![Build Status](https://github.com/gendx/paralight/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/gendx/paralight/actions/workflows/build.yml) +[![Test Status](https://github.com/gendx/paralight/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/gendx/paralight/actions/workflows/tests.yml) This library allows you to distribute computation over slices (and other *indexed* sources) among multiple threads. Each thread processes a subset of the diff --git a/src/iter/mod.rs b/src/iter/mod.rs index 8c5a015..dea66d3 100644 --- a/src/iter/mod.rs +++ b/src/iter/mod.rs @@ -42,7 +42,7 @@ pub trait ParallelIterator: Sized { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIterator, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -78,7 +78,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -118,7 +118,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -146,7 +146,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -175,7 +175,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -198,7 +198,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// # use paralight::iter::{ /// # IntoParallelRefSource, ParallelIterator, ParallelIteratorExt, ParallelSourceExt, /// # }; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # use std::rc::Rc; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, @@ -225,7 +225,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # use std::collections::HashSet; /// # use std::sync::Mutex; /// # let mut thread_pool = ThreadPoolBuilder { @@ -264,7 +264,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # use std::sync::atomic::{AtomicUsize, Ordering}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, @@ -299,7 +299,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -322,7 +322,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// # use paralight::iter::{ /// # IntoParallelRefSource, ParallelIterator, ParallelIteratorExt, ParallelSourceExt, /// # }; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # use std::rc::Rc; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, @@ -350,7 +350,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -385,7 +385,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -432,7 +432,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -466,7 +466,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -501,7 +501,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -548,7 +548,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -582,7 +582,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -612,7 +612,7 @@ pub trait ParallelIteratorExt: ParallelIterator { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, diff --git a/src/iter/source/mod.rs b/src/iter/source/mod.rs index 170837f..aba10c4 100644 --- a/src/iter/source/mod.rs +++ b/src/iter/source/mod.rs @@ -79,7 +79,7 @@ pub trait IntoParallelRefSource<'data> { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -131,7 +131,7 @@ pub trait IntoParallelRefMutSource<'data> { /// /// ``` /// # use paralight::iter::{IntoParallelRefMutSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -175,7 +175,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -205,7 +205,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -235,7 +235,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -265,7 +265,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -284,7 +284,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -316,7 +316,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -335,7 +335,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ```should_panic /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -365,7 +365,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -384,7 +384,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -415,7 +415,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -434,7 +434,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ```should_panic /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -461,7 +461,7 @@ pub trait ParallelSourceExt: ParallelSource { /// /// ``` /// # use paralight::iter::{IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt}; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// let mut thread_pool = ThreadPoolBuilder { /// num_threads: ThreadCount::AvailableParallelism, /// range_strategy: RangeStrategy::WorkStealing, diff --git a/src/iter/source/zip.rs b/src/iter/source/zip.rs index 6ce49c7..c7ff437 100644 --- a/src/iter/source/zip.rs +++ b/src/iter/source/zip.rs @@ -28,7 +28,7 @@ where /// # use paralight::iter::{ /// # IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt, ZipableSource, /// # }; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -52,7 +52,7 @@ where /// # use paralight::iter::{ /// # IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt, ZipableSource, /// # }; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -80,7 +80,7 @@ where /// # use paralight::iter::{ /// # IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt, ZipableSource, /// # }; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing, @@ -113,7 +113,7 @@ where /// # use paralight::iter::{ /// # IntoParallelRefSource, ParallelIteratorExt, ParallelSourceExt, ZipableSource, /// # }; - /// # use paralight::{CpuPinningPolicy, ThreadCount, RangeStrategy, ThreadPoolBuilder}; + /// # use paralight::{CpuPinningPolicy, RangeStrategy, ThreadCount, ThreadPoolBuilder}; /// # let mut thread_pool = ThreadPoolBuilder { /// # num_threads: ThreadCount::AvailableParallelism, /// # range_strategy: RangeStrategy::WorkStealing,