Skip to content

Tracking Issue for bool_to_option #80967

Closed
@KodrAus

Description

@KodrAus

Feature gate: #![feature(bool_to_option)]

This is a tracking issue for bool::then_some, a value-receiver version of bool::then, split off from #64260.

Public API

impl bool {
    pub fn then_some<T>(self, t: T) -> Option<T>;
}

Steps / History

Unresolved Questions

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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