3 ms·
And yet, such mutation is perfectly safe as long as you only change the value of existing keys. But you can't do that in Rust.
by o11c 2y ago
And yet, such mutation is perfectly safe as long as you only change the value of existing keys. But you can't do that in Rust.
- dwattttt 2y agoYou would use interior mutability, putting things in Cells in the map.