In Rust 1.33, transpose() is stable, so you can just call it: fn main() { let x: Result<Option<i32>, ()> = Ok(Some(5)); let y: ...
確定! 回上一頁