Unsafe Functions
A function or method can be marked unsafe
if it has extra preconditions you
must uphold to avoid undefined behaviour.
There are two main categories:
- Rust functions declared unsafe with
unsafe fn
. - Foreign functions in
extern "C"
blocks.
Speaker Notes
This slide and its sub-slides should take about 15 minutes.
We will look at the two kinds of unsafe functions next.