2 releases
| 0.1.1 | Jun 9, 2023 |
|---|---|
| 0.1.0 | May 21, 2022 |
#462 in Concurrency
5,823 downloads per month
Used in 22 crates
(11 directly)
7KB
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.
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.