Tracking Issue for const_cell · Issue #131283 · rust-lang/rust (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Feature gate: #![feature(const_cell)]
This is a tracking issue for using Cell
in a const context.
Public API
// core::cell
impl Cell { pub const fn replace(&self, val: T) -> T; }
impl<T: Copy> Cell { pub const fn get(&self) -> T; }
impl<T: ?Sized> Cell { pub const fn get_mut(&mut self) -> &mut T; pub const fn from_mut(t: &mut T) -> &Cell; }
impl Cell<[T]> { pub const fn as_slice_of_cells(&self) -> &[Cell]; }
Steps / History
- Implementation: make Cell unstably const #131281
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.