Symetrically, Option.ok_or converts an Option to a Result object. The recommended way of error handling in Rust is to define an enum ...
確定! 回上一頁