Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Unsafe code & complex ownership

Here we discuss the handling of more complex patterns relating to Rust ownership including:

  • Interior mutability, where Rust allows you to mutate data even through a shared reference &T
  • Raw pointers, which require proper ownership handling in order to uphold safety contracts
  • Concurrency, where objects owned across different threads may need to coordinate.