Truncates the string to a certain size that can be greater than the current size.
impl<H> NoNullString<H>
where H: Allocator,
{
unsafe fn set_len(&mut self, size: usize) -> ()
}| Name | Description |
|---|---|
| size | The new length of the string. |
If the new range of the string contains null bytes, the behavior is undefined.