Why does Option<String>.as_ref() not deref to Option<&str>? I expect the same result for both of ... As of Rust 1.40, you can also use Option::as_deref .
確定! 回上一頁