Method lrs::string::String::with_capacity

Syntax

impl<H> String<H>
    where H: Allocator,
{
    fn with_capacity(cap: usize) -> Result<String<H>, Errno>
        where <H as Allocator>::Pool: Default,
}

Arguments

NameDescription
cap