Luna::BasicString::reserve
void reserve(usize new_cap)
Increases the capacity of the string to a value greater than or equal to new_cap
, so that it can hold at least new_cap
characters without reallocating the string buffer.
If new_cap
is smaller than or equal to capacity, this function does nothing.
Parameters
-
in new_cap
The new capacity value to reserve.