Loading tutorials
unsafe block lets you do a few extra things while the compiler keeps checking everything else.3 min readunsafe block.3 min readunsafe blocks. Inside an unsafe block the compiler stops checking some rules, but the language still requires them. Breaking one is undefined behavior (UB). This chapter3 min readunsafe block allows and what a safety contract is. Here you will learn to hide unsafe code behind a function that no caller can misuse.2 min readunsafe blocks permit, how raw pointers work, and what undefined behavior (UB) means. It also assumes you can read basic std::thread code.2 min readstd::thread. It also assumes you have read the earlier chapters on raw pointers and safety contracts.3 min readCopy types and #[repr(C)].2 min readunsafe blocks work, as covered in earlier chapters. You also need Cargo and a nightly toolchain installed through rustup.3 min read# Safety sections, and run Cargo commands. It covers how to arrange a project so that a reviewer can check its unsafe code quickly.2 min read