pub fn try_append_to_string<T: Display>(
dest: &mut String,
value: &T,
) -> Result<(), TryReserveError>
Available on crate feature
alloc
only.Expand description
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.