用於錯誤時的 E 型別則是 std::io::Error 。 這樣的回傳型別代表 File::open 的 ... 不過 File::create 也可能會失敗,所以我們需要第二個內部 match 表達式來處理。
確定! 回上一頁