Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

expression

Code that produces a value.

An expression evaluates to a value; blocks, if, match, and loop are expressions in Rust.

Examples

  • price + tax, if n > 0 { 1 } else { 0 } and { let tax = price / 10; price + tax } are all expressions: each produces a value.

Read the full section →