Closed
Description
Feature gate: #![feature(unzip_option)]
This is a tracking issue for the Option::unzip()
method, which turns an Option<(T, U)>
into an (Option<T>, Option<U>)
.
This is the inverse of Option::zip()
and is a nice little convenience function
Public API
// core::option
impl<T, U> Option<(T, U)> {
pub fn unzip(self) -> (Option<T>, Option<U>);
}
Steps / History
- Implementation: Added the
Option::unzip()
method #87636 - Final comment period (FCP)
- Stabilization PR: Stabilize
Option::unzip()
#98204
Unresolved Questions
- None yet.
Metadata
Metadata
Assignees
Labels
Area: Result and Option combinatorsCategory: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.