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.
This commit is contained in:
Travis Cross 2024-03-27 18:42:25 +00:00
parent ad74905583
commit f6cd712389
1 changed files with 4 additions and 0 deletions

View File

@ -687,3 +687,7 @@ gen fn foo(args) // or any of the above variants for the item type
gen foo(args) // or any of the above variants for the item type
generator fn foo(args) // or any of the above variants for the item type
```
## Implement `FusedIterator`
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`.