列舉是Rust 中的一個型態,其為多個variant 所組成: enum ... Option::unwrap : 直接把 Option 內的值取出來,若 Option 是 None 則會造成程式印出錯誤訊息後直接結束 ...
確定! 回上一頁