2 ms·
You can define two `*mut`, though, in unsafe code.
by Yoric 5y ago
You can define two `*mut`, though, in unsafe code.
- anderskaseorg 5y agoA better option is to use Cell or RefCell; they allow completely safe shared mutability in single-threaded code. https://doc.rust-lang.org/std/cell/ https://doc.rust-lang.org/std/cell/
- Yoric 5y agoI'm aware of that :) I'm just trying to decypher that cryptic sentence from the OP.