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

Memory Model

Atlas77 uses explicit ownership and deterministic destruction.

Core ideas:

  • Trivial values are copyable.
  • Resource values are moved.
  • move(x) invalidates the source value.
  • Cleanup is inserted by compiler passes and lowered to generated C code.
let a = make_resource();
let b = move(a);
// a is invalid after move