1/6

Every value in Rust has a type — its shape. Think of Ferrisia's vials: each one is labeled with what's inside.

The three shapes you'll use most:

  • i32 — a whole number: 3, -7, 2026
  • f64 — a decimal number: 2.5, 0.1
  • bool — a yes/no value: true or false