#atomic #cell #sync #generic #trait

no-std radium

Helper traits for working with maybe-atomic values

4 releases (2 breaking)

✓ Uses Rust 2018 edition

0.3.0 Jan 6, 2020
0.2.0 Oct 16, 2019
0.1.1 May 26, 2019
0.1.0 May 26, 2019

#69 in Concurrency

Download history 609/week @ 2019-12-14 366/week @ 2019-12-21 470/week @ 2019-12-28 649/week @ 2020-01-04 843/week @ 2020-01-11 941/week @ 2020-01-18 1084/week @ 2020-01-25 1186/week @ 2020-02-01 1136/week @ 2020-02-08 909/week @ 2020-02-15 1312/week @ 2020-02-22 1519/week @ 2020-02-29 2436/week @ 2020-03-07 2573/week @ 2020-03-14 2812/week @ 2020-03-21 5491/week @ 2020-03-28

899 downloads per month
Used in 136 crates (via bitvec)

MIT license

27KB
361 lines

radium

Latest Version Documentation

radium provides a helper trait with 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 the trait's documentation.


@kneecaw - https://twitter.com/kneecaw/status/1132695060812849154

Feelin' lazy: Has someone already written a helper trait abstracting operations over AtomicUsize and Cell<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)

No runtime deps