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§

source

fn get_ref(&self) -> &T

source

fn get_mut(&mut self) -> &mut T

source

unsafe fn get_as_mut(&self) -> &mut T

Implementations on Foreign Types§

source§

impl<T: Sized> UnsafeCellExtension<T> for UnsafeCell<T>

source§

fn get_ref(&self) -> &T

source§

fn get_mut(&mut self) -> &mut T

source§

unsafe fn get_as_mut(&self) -> &mut T

Implementors§