[−][src]Crate radium
radium
provides a series of helper traits providing a uniform API for
interacting with both atomic types like
AtomicUsize
, and non-atomic types like
Cell<usize>
.
This crate is #![no_std]
-compatible, and uses no non-core types.
For more details, see each trait's documentation.
@kneecaw - https://twitter.com/kneecaw/status/1132695060812849154
Feelin' lazy: Has someone already written a helper trait abstracting operations over
AtomicUsize
andCell<usize>
for generic code which may not care about atomicity?
@ManishEarth - https://twitter.com/ManishEarth/status/1132706585300496384
no but call the crate radium
(since people didn't care that it was radioactive and used it in everything)
Traits
RadiumBool | A maybe-atomic shared mutable |
RadiumI8 | A maybe-atomic shared mutable |
RadiumI16 | A maybe-atomic shared mutable |
RadiumI32 | A maybe-atomic shared mutable |
RadiumI64 | A maybe-atomic shared mutable |
RadiumIsize | A maybe-atomic shared mutable |
RadiumPtr | A maybe-atomic shared mutable |
RadiumU8 | A maybe-atomic shared mutable |
RadiumU16 | A maybe-atomic shared mutable |
RadiumU32 | A maybe-atomic shared mutable |
RadiumU64 | A maybe-atomic shared mutable |
RadiumUsize | A maybe-atomic shared mutable |