Tracking Issue for Option::into_flat_iter (original) (raw)
Feature gate: #![feature(option_flat_iter)]
This is a tracking issue for Option::(into_)flat_iter, methods for getting iterators out of Options.
Public API
impl Opt where T: IntoIterator { pub fn into_flat_iter(self) -> OptionFlatten<::IntoIter>; }
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: Option::map_iter() to create an iterator from Option libs-team#626
- Implementation: #...
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Should there be
into_flat_iterandflat_iteror justinto_flat_iterandas_ref/as_mut? - This is currently done as
pub fn into_flat_iter<A>(self) -> OptionFlatten<A> where T: IntoIterator<IntoIter = A>, but do we want theAthere or should it bepub fn into_flat_iter(self) -> OptionFlatten<<T as IntoIterator>::IntoIter>? - Should this be unconditionally fused (since the iterator is holding an
Optionanyway), or only fused when the inner iterator is fused? - Should
Resulthave this too, since it's alsoIntoIterator?