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<T> Option<T> where T: IntoIterator {
pub fn into_flat_iter(self) -> OptionFlatten<<T as IntoIterator>::IntoIter>;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
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
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Option::map_iter()to create an iterator fromOptionlibs-team#626Unresolved 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?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩