Feature gate: #![feature(unsafe_cell_access)]
This is a tracking issue for direct access APIs on UnsafeCell (without going through raw pointers).
Public API
// core::cell
impl<T> UnsafeCell<T> {
pub unsafe fn replace(&self, new_value: T) -> T;
}
impl<T: ?Sized> UnsafeCell<T> {
pub unsafe fn as_ref_unchecked(&self) -> &T;
pub unsafe fn as_mut_unchecked(&self) -> &mut T;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(unsafe_cell_access)]This is a tracking issue for direct access APIs on
UnsafeCell(without going through raw pointers).Public API
Steps / History
UnsafeCellaccess APIs libs-team#521Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩