Method lrs::string::NoNullString::truncate

Truncates the string to a certain size.

Syntax

impl<H> NoNullString<H>
    where H: Allocator,
{
    fn truncate(&mut self, size: usize) -> ()
}

Arguments

NameDescription
size

The new length of the string.