5 ms·
Rust undefined behavior can only happen within "unsafe" blocks. You can read more about what things the programmer has to manually avoid while writing code in
by ithkuil 6y ago
Rust undefined behavior can only happen within "unsafe" blocks.
You can read more about what things the programmer has to manually avoid while writing code in "unsafe" code blocks: https://doc.rust-lang.org/reference/behavior-considered-undefined.html https://doc.rust-lang.org/reference/behavior-considered-unde...
EDIT: this means that if you stick to safe rust, the type system ensures you cannot have data races (among other things)
- Kinrany 6y agoI do mean the unsafe blocks.