Control Flow Basics

This segment should take about 40 minutes. It contains:

SlideDuration
if Expressions4 minutes
Loops5 minutes
break and continue4 minutes
Blocks and Scopes5 minutes
Functions3 minutes
Macros2 minutes
Exercise: Collatz Sequence15 minutes
  • 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.