Skip to content

Commit f6cd712

Browse files
committed
Add future possibility of implementing FusedIterator
The main body of the RFC discusses how we might implement `FusedIterator` for the iterators produced by `gen` blocks, but this was not listed as a future possibility. Let's do that.
1 parent ad74905 commit f6cd712

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/3513-gen-blocks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,3 +687,7 @@ gen fn foo(args) // or any of the above variants for the item type
687687
gen foo(args) // or any of the above variants for the item type
688688
generator fn foo(args) // or any of the above variants for the item type
689689
```
690+
691+
## Implement `FusedIterator`
692+
693+
The iterators produced by `gen` blocks are fused but do not implement `FusedIterator` because it is not a language item. We may in the future want for these iterators to implement `FusedIterator`.

0 commit comments

Comments
 (0)