pub trait UnsafeCellExtension<T: Sized> {
// Required methods
fn get_ref(&self) -> &T;
fn get_mut(&mut self) -> &mut T;
unsafe fn get_as_mut(&self) -> &mut T;
}Required Methods§
fn get_ref(&self) -> &T
fn get_mut(&mut self) -> &mut T
unsafe fn get_as_mut(&self) -> &mut T
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".