I attempted my best to improve my original description of atomics. This removes the giant ugly double-blockquote referencing the Rust alloc crate, which references the Boost documentation. Please let me know if my descriptions are wrong!
I also fixed #323 with this edit; it didn't really make sense anyway to have it be a *mut ArcInner<T> originally as it wouldn't have been possible to mutate the inner value or the refcount (the refcount can be updated through a shared ref with atomics, anyway). I made sure to keep the description of variance, so the reader understands why that is an important property to retain.
I attempted my best to improve my original description of atomics. This removes the giant ugly double-blockquote referencing the Rust
alloc
crate, which references the Boost documentation. Please let me know if my descriptions are wrong!I also fixed #323 with this edit; it didn't really make sense anyway to have it be a
*mut ArcInner<T>
originally as it wouldn't have been possible to mutate the inner value or the refcount (the refcount can be updated through a shared ref with atomics, anyway). I made sure to keep the description of variance, so the reader understands why that is an important property to retain.