列舉是Rust 中的一個型態,其為多個variant 所組成: enum Color { Red, Green, Blue, } ... 若數字是1 就印出「數字是1」,以此類推match 2 { 1 => println!(
確定! 回上一頁