This is a tracking issue for the RFC "#3513" (rust-lang/rfcs#3513).
The feature gate for the issue is #![feature(gen_blocks)].
See also:
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
Unresolved Questions
Related issues
Implementation history
This is a tracking issue for the RFC "#3513" (rust-lang/rfcs#3513).
The feature gate for the issue is
#![feature(gen_blocks)].See also:
itermacro #142269About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
genblocks in the 2024 edition #116447)Iterators fused (so they keep returningNoneafter the firstNoneinstead of panicking (which is what they do now))FusedIterator- ImplementFusedIteratorforgenblock #122829Unresolved Questions
Iteratordirectly or, e.g.,IntoIteratororIntoGenerator.genblocks prior to stabilization.gen.genas a full keyword or as a contextual one.size_hint.DoubleEndedIteratororExactSizeIterator.k#genmay or may not be workable.Related issues
Implementation history
genblocks in the 2024 edition #116447gen fn#118457Rng::gento avoid conflicting with a keyword in Rust 2024 rust-random/rand#1435 (thanks @PatchMixolydic for talking withrandfolks!)itermacro #137725