Expand description
This is a backport of the SyncUnsafeCell type from the standard library. The backport allows
it to be used in older Rust versions, where it either does not exist yet or is not stable. Its
minimum supported Rust version is 1.59, though
it may work with older versions too.
A few changes have been made accordingly:
UnsafeCell::into_inneris not stablyconst, soSyncUnsafeCell::into_inneris also notconst.const_mut_refsis not stable, soSyncUnsafeCell::get_mutis notconst.CoerceUnsizedis not stable, soSyncUnsafeCelldoes not implement it.
Thanks to Mara Bos (m-ou-se) for the standard library implementation of which this is a copy.
Structsยง
- Sync
Unsafe Cell UnsafeCell, butSync.