3 ms·
I don't know what you're programming, but it's pretty hard to not use more complex structures like Vecs and HashMaps without them being mutable. Also, that is
by ZephyrBlu 4y ago
I don't know what you're programming, but it's pretty hard to not use more complex structures like Vecs and HashMaps without them being mutable.
Also, that is exactly what Rust's borrow-checker is there for. It doesn't allow you to mutably borrow the same data structure multiple times.
- criddell 4y agoI was thinking more about the things being contained rather than the containers themselves. But you're right - they are all data structures.