I am making things easy for myself on this Rust journey by focusing on only using the most basic stuff
You know, like modules, workspaces, generics, interior mutability, declarative and procedural macros…
I am making things easy for myself on this Rust journey by focusing on only using the most basic stuff
You know, like modules, workspaces, generics, interior mutability, declarative and procedural macros…
Finding that a lot of really useful Rust features are very thinly documented. `Arc::make_mut()` is an *incredibly* powerful feature that is barely discussed. I only discovered it as a passing mention in the `Cow` docs. Just this one method has shaved literally hundreds of lines off the code I'm writing…
Worse still, the `Arc` introductory notes actually go out of their way to warn that you can't obtain a mutable reference, and point users at `Mutex`, without mentioning this copy-on-write feature!
#rustlang