-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(const_cell_traits)]
This is a tracking issue for const Cell
methods that depend on const traits.
Public API
impl<T> Cell<T> {
pub const fn set(&self, val: T) where T: [const] Destruct;
// NOTE: Copy should imply const Destruct, but it doesn't atm
pub const fn update(&self, f: impl [const] FnOnce(T) -> T) where T: Copy + [const] Destruct;
pub const fn take(&self) -> T where T: [const] Default;
}
Steps / History
(Remember to update the S-tracking-*
label when checking boxes.)
- Implementation: const Cell methods #147788
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.