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

Let Control Flow

Rust has a few control flow constructs that differ from other languages. They are used for pattern matching:

  • if let expressions
  • while let expressions
  • let else expressions