Crates.io | arcell |
lib.rs | arcell |
version | 0.1.2 |
source | src |
created_at | 2023-08-30 03:22:03.001467 |
updated_at | 2023-08-30 09:04:58.891751 |
description | Arc obtains internal variability |
homepage | |
repository | https://github.com/soloist-v/arcell.git |
max_upload_size | |
id | 958678 |
size | 2,857 |
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);