1/5

A chain of if / else if / else gets clumsy fast. For "compare one value against many possibilities", Rust has something sharper: match.

match number {
    1 => println!("one"),
    2 => println!("two"),
    _ => println!("many"),
}

Each line is an arm: pattern => what to do.