3 ms·
Only if the map is Sync :) and also, if map is a &mut, not even another thread will modify it while you hold it that reference.
by iknowstuff 2y ago
Only if the map is Sync :) and also, if map is a &mut, not even another thread will modify it while you hold it that reference.
- vlovich123 2y agoCorrect, I'm just highlighting that there are gaps in Rust's ownership model where local reasoning fails. They're fairly narrow compared to other languages, but you do have to know about them.