3 ms·
Rust unsafe blocks are generally a few different things: * Calls to C functions (which can't be checked for safety) * Cycles or mutable access which can't be
by timw4mail 7y ago
Rust unsafe blocks are generally a few different things:
* Calls to C functions (which can't be checked for safety)
* Cycles or mutable access which can't be checked for safety by the compiler
* Performance-sensitive code, which ignores bounds checking (again, which can't be checked for safety by the compiler)
The point of `unsafe` is to fence in the memory danger into the smallest possible points.