pub fn append<S>(base: &mut String, append: &S)where
S: ToString,
Expand description
§Description
Adds a new string onto the base string. The provided base string will be modified. All arguments assume that all characters are UTF-8.
§Arguments
base
- The base string that will be modified.append
- The new string that will be added onto the base.
§Examples
use string_simple::modify::append;
let mut str1 = String::from("base string");
let str2 = String::from("!");
// str1 will now be: "base string!"
append(&mut str1, &str2);