Skip to content

Add FusedIterator for which it is commented fused.#548

Merged
bors[bot] merged 1 commit into
rust-itertools:masterfrom
aobatact:FusedIter
Jun 9, 2021
Merged

Add FusedIterator for which it is commented fused.#548
bors[bot] merged 1 commit into
rust-itertools:masterfrom
aobatact:FusedIter

Conversation

@aobatact

Copy link
Copy Markdown
Contributor

Interleave, IntersperseWith, and ZipLongest are said to be fused in doc comment, but it wasn't marked as FusedIterator.

Interleave, IntersperseWith, and ZipLongest are said to be fused,
but it wasn't marked as FusedIterator.
@aobatact aobatact mentioned this pull request May 26, 2021
bors Bot added a commit that referenced this pull request Jun 8, 2021
550: Add More FusedIterator r=jswrenn a=aobatact

These Iterator is fused if the underlying Iterator is fused.
-  `FilterOk`
-  `FilterMapOk`
- `InterleaveShortest`
- `KMergeBy`
- `MergeBy`
- `PadUsing`
- `Positions`
- `Product` 
- `RcIter`
- `TupleWindows`
- `Unique`
- `UniqueBy`
-  `Update`
- `WhileSome`

These is fused even though the underlying Iterator is not fused.
- `Combinations` 
- `CombinationsWithReplacement`
- `Powerset`
- `RepeatN`
- `WithPosition` 

`FusedIterator` can be added to these structs.

Related  #55, #152, #531, #533

I separate the pull request with #548 because these Iterator are sure to be fused because it was documented, but I'm not 100% sure that the structs in this PR is actually fused. (Though I believe it is.)

Co-authored-by: aobatact <aobatact144@gmail.com>

@jswrenn jswrenn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@jswrenn jswrenn added this to the next milestone Jun 9, 2021
jswrenn added a commit that referenced this pull request Jun 9, 2021
@bors

bors Bot commented Jun 9, 2021

Copy link
Copy Markdown
Contributor

Build succeeded:

@bors bors Bot merged commit 24f40bd into rust-itertools:master Jun 9, 2021
@aobatact aobatact deleted the FusedIter branch February 7, 2022 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants