fn main() { // ANCHOR: here let data = "initial contents"; let s = data.to_string(); // 该方法也可直接用于字符串字面值: let s = "initial contents".to_string(); // ANCHOR_END: here }