pub struct SyncUnsafeCell<T: ?Sized>(/* private fields */);
Expand description
A Sync
UnsafeCell
when T
is Sync
. “Manually stabilized”
from rustc feature gate sync_unsafe_cell
.
Should be replaced with core::cell::SyncUnsafeCell
instead when it’s
stabilized. Tracked in the rust-lang issue
#95439. The open
questions don’t seem to imply any issues with the type as it’s
implemented here (this type requires T
to be Sync
, and the naming
question is irrelevant for safety).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for SyncUnsafeCell<T>
impl<T> !RefUnwindSafe for SyncUnsafeCell<T>
impl<T> Send for SyncUnsafeCell<T>
impl<T> Unpin for SyncUnsafeCell<T>
impl<T> UnwindSafe for SyncUnsafeCell<T>where
T: UnwindSafe + ?Sized,
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