Rust 通過關鍵字匹配,可用於像C開關提供模式匹配。 fn main() { let number = 13; ... (Tell me about {}, number); match number { // Match a single value 1 = println!
確定! 回上一頁