原文 标签 string rust type-conversion ... st.as_bytes() String -> &str s.as_str() &[u8] -> &str str::from_utf8(u) Vec<u8> -> String String::from_utf8(v)
確定! 回上一頁