更新为Rust 1.0. 您无法从 String 获取 &'static str ,因为 String s不会在程序的整个生命周期中存在,这就是 &'static 生命周期的含义。您只能通过 String 自己的 ...
確定! 回上一頁