pub fn get_a_string_with_capacity(capacity: usize) -> String
Expand description

Get a String with a specified capacity.

Strings are heap-allocated, so we can simply build them to hold a certain number of characters by default if we know how big they are, allowing them to expand later if necessary.