Skip to content

Tracking Issue for const bool::then{,_some} functions #91917

Closed
@fee1-dead

Description

@fee1-dead

Feature gate: #![feature(const_bool_to_option)]

This is a tracking issue for const bool::then{,_some} functions.

See also #80967

Public API

// core::bool

impl bool {
    pub const fn then_some<T>(self, t: T) -> Option<T>
    where
        T: ~const Drop;

    pub const fn then<T, F>(self, f: F) -> Option<T>
    where
        F: ~const FnOnce() -> T,
        F: ~const Drop;
}

Steps / History

Unresolved Questions

  • None yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_trait_impl`#![feature(const_trait_impl)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions