pub(crate) struct UnsafeCell<T>(UnsafeCell<T>);Expand description
This UnsafeCell wrapper exists for interoperability with loom::cell::UnsafeCell, and only contains the interface that is needed for this crate.
Tuple Fields§
§0: UnsafeCell<T>Implementations§
Source§impl<T> UnsafeCell<T>
impl<T> UnsafeCell<T>
pub(crate) fn new(data: T) -> UnsafeCell<T>
pub(crate) fn get(&self) -> ConstPtr<T>
pub(crate) fn into_inner(self) -> T
Trait Implementations§
Source§impl<T: Debug> Debug for UnsafeCell<T>
impl<T: Debug> Debug for UnsafeCell<T>
Source§impl<T: Default> Default for UnsafeCell<T>
impl<T: Default> Default for UnsafeCell<T>
Source§fn default() -> UnsafeCell<T>
fn default() -> UnsafeCell<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> !Freeze for UnsafeCell<T>
impl<T> !RefUnwindSafe for UnsafeCell<T>
impl<T> Send for UnsafeCell<T>where
T: Send,
impl<T> !Sync for UnsafeCell<T>
impl<T> Unpin for UnsafeCell<T>where
T: Unpin,
impl<T> UnwindSafe for UnsafeCell<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more