Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

soundness

The guarantee that no safe code can use an API to cause undefined behavior.

A safe function is sound if no sequence of safe calls can trigger undefined behavior through it; an unsound API is a bug even if no current caller misuses it.

Loading interactive…

Examples

  • pick_two_mut(items, i, j) asserts i != j before using raw pointers, so no safe caller can get two &mut to the same item.

Read the full section →