Skip to content

Tracking Issue for Option::unzip() #87800

Closed
@Kixiron

Description

@Kixiron

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

Unresolved Questions

  • None yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-result-optionArea: Result and Option combinatorsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions