-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Tracking Issue for Option::into_flat_iter #148441
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 ↩