#arc #cell #arc-cell

arcell

Arc obtains internal variability

3 releases

0.1.2 Aug 30, 2023
0.1.1 Aug 30, 2023
0.1.0 Aug 30, 2023

#93 in #arc

MIT license

3KB

Arc obtains internal variability

[dependencies]
arcell = "0.1"
let a = ArcCell::new(10);
unsafe {
    let ref_mut_a = ArcCell::get_mut_uncheck( &a);
    *ref_mut_a = 11;
}
assert_eq!(*a, 11);

No runtime deps