Tracking Issue for const_cell (original) (raw)

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

Unresolved Questions

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html