rust 将String 转换为&'static str. ... fn string_to_static_str(s: String) -> &'static str { Box::leak(s.into_boxed_str()) }. 0人点赞.
確定! 回上一頁