Skip to content

Glossary: Rust in Practice

unsafe

Also written: unsafe block

A keyword marking code whose rules the programmer has checked because the compiler can't. It unlocks five extra operations but keeps ownership and borrow checks.

Where the book teaches it

Related terms

unsafe functionraw pointerundefined behaviorsafe wrapper