Registry / utility / atomic-refcell

atomic-refcell

JSON →
library0.1.13rscratesunverified

A threadsafe RefCell implementation using atomic operations for interior mutability.

# Cargo.toml [dependencies] atomic_refcell = "0.1.13"
INSTALL
IMPORT
SIG · ATOMIC-REFCELL
A
atomic-refcell
utilityrustv0.1.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AtomicRefCell
use atomic_refcell::AtomicRefCell;

Creates an AtomicRefCell and demonstrates borrowing and mutation.

use atomic_refcell::AtomicRefCell; let cell = AtomicRefCell::new(42); { let borrow = cell.borrow(); println!("{}", *borrow); } { let mut borrow_mut = cell.borrow_mut(); *borrow_mut = 43; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.13latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
35
OpenAI (training)
1
Resources
atomic-refcell — cargo add atomic-refcell · libregistry