从Rust 1.40开始,标准库必须Option::as_deref这样做: fn main() { let opt: Option<String> ... 然后,最左边的 * 实际上调用该 Deref 特征,因为 String 实现了 ...
確定! 回上一頁