if let. 在一些场合下,用 match 匹配枚举类型并不优雅。比如: 复制代码. #![allow(unused_variables)]; fn main() {; // 将`optional` 定 ...
確定! 回上一頁