📜  锈成字符串 - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.800000             🧑  作者: Mango

代码示例1
// You can convert a literal string (&str) into a String using the to_string function
// Here s is a String where s_literal is a &'static str
let s_literal = "String literal";
let s = s_literal.to_string();