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

Control Flow Basics

This segment should take about 45 minutes. It contains:

SlideDuration
Blocks and Scopes5 εˆ†ι˜
if 葨達式4 minutes
match Expressions5 εˆ†ι˜
迴圈5 εˆ†ι˜
break and continue4 minutes
函式3 εˆ†ι˜
巨集2 εˆ†ι˜
Exercise: Collatz Sequence15 εˆ†ι˜
  • We will now cover the many kinds of flow control found in Rust.

  • Most of this will be very familiar to what you have seen in other programming languages.