mirror of https://github.com/rust-lang/rfcs
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:
parent
ad74905583
commit
f6cd712389
|
@ -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`.
|
||||
|
|
Loading…
Reference in New Issue