-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add traits ParallelDrainRange and ParallelDrainFull
These define methods of the same name, so only one is expected to be implemented for any given collection type. Collections that support ranges can always call `par_drain(..)` for a full drain. ```rust pub trait ParallelDrainRange<Idx = usize> { type Iter: ParallelIterator<Item = Self::Item>; type Item: Send; fn par_drain<R: RangeBounds<Idx>>(self, range: R) -> Self::Iter; } pub trait ParallelDrainFull { type Iter: ParallelIterator<Item = Self::Item>; type Item: Send; fn par_drain(self) -> Self::Iter; } ```
- Loading branch information
Showing
11 changed files
with
574 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.