📜  rust 匹配通配符 - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.384000             🧑  作者: Mango

代码示例1
let x = 1;

match x {
    1 => println!("one"),
    2 => println!("two"),
    3 => println!("three"),
    4 => println!("four"),
    5 => println!("five"),
    _ => println!("something else"),
}