match 守卫

控制流 / 条件语句 / match 语句

let number = 42;
match number {
    1 => print!("one"),
    x if x > 10 => print!("over 10"),
    _ => print!("other value"),
}