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.)
Unresolved Questions
Feature gate:
#![feature(const_cell_traits)]This is a tracking issue for const
Cellmethods that depend on const traits.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩