如何将a String转换为&str?更具体地说,我想将它转换为str带有staticlifetime(&'static str)的a.
String
&str
str
static
&'static str
rust
rust ×1