Skip to content

Tracking Issue for const_option_cloned #91582

Closed
@mbartlett21

Description

@mbartlett21

Feature gate: #![feature(const_option_cloned)]

This is a tracking issue for constifying the Option::cloned functions.

This is only constifying existing apis, not adding new ones

Public API

// core::option

impl<T> Option<&T> {
    const fn cloned(self) -> Option<T>
    where
        T: ~const Clone;
}
impl<T> Option<&mut T> {
    const fn cloned(self) -> Option<T>
    where
        T: ~const Clone;
}

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