Comment on Microsoft wants to replace its entire C and C++ codebase, perhaps by 2030
InnerScientist@lemmy.world 1 week agoYeah, to quote the manual:
“[Unsafe Rust allows you to]
- Dereference a raw pointer.
- Call an unsafe function or method.
- Access or modify a mutable static variable.
- Implement an unsafe trait.
- Access fields of unions.
[…] The unsafe keyword only gives you access to these five features that are then not checked by the compiler for memory safety.”