Complete the code to create a new empty String in Rust.
let mut s = String::[1]();In Rust, String::new() creates a new empty String.
Complete the code to append a character to a String in Rust.
let mut s = String::new(); s.[1]('a');
The push method adds a single character to the end of a String.
Fix the error in the code to convert a &str to a String.
let s = "hello".[1]();
The correct method to convert a string slice &str to a String is to_string().
Fill both blanks to create a String from a &str and append another &str.
let mut s = String::[1]("hello"); s.[2](" world");
String::from creates a String from a &str, and push_str appends a string slice.
Fill all three blanks to create a String, append a char, and append a &str.
let mut s = String::[1](); s.[2]('!'); s.[3](" Welcome");
String::new() creates an empty String, push adds a char, and push_str appends a string slice.
