if let. 在一些场合下,用 match 匹配枚举类型并不优雅。比如: ... 定为`Option<i32>` 类型 let optional = Some(7); match optional { Some(i) => { println!
確定! 回上一頁