Function try_append_to_string
fn try_append_to_string<T: fmt::Display>(dest: &mut String, value: &T) -> Result<(), TryReserveError>
Appends the data to the string.
When allocation failure happens, incompletely appended strings won't be stripped. Callers are responsible to clean up the destination if necessary.