Option 包含一些方法来简化模式匹配,毕竟过多的 match 会使代码变得臃肿,这也是滋生bug的原因之一。 unwrap. impl<T> Option<T> { fn unwrap( ...
確定! 回上一頁