Open
Description
opened on Oct 5, 2024
Feature gate: #![feature(const_cell)]
This is a tracking issue for using Cell
in a const context.
Public API
// core::cell
impl<T> Cell<T> {
pub const fn replace(&self, val: T) -> T;
}
impl<T: Copy> Cell<T> {
pub const fn get(&self) -> T;
}
impl<T: ?Sized> Cell<T> {
pub const fn get_mut(&mut self) -> &mut T;
pub const fn from_mut(t: &mut T) -> &Cell<T>;
}
impl<T> Cell<[T]> {
pub const fn as_slice_of_cells(&self) -> &[Cell<T>];
}
Steps / History
- Implementation: make Cell unstably const #131281
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Activity