Luna::BasicString::capacity

usize capacity() const

Gets the capacity of the string, that is, the maximum number of characters that can be stored in this string without reallocating the string buffer.

Return value

Returns the capacity of the string.