Method lrs::vec::Vec::shrink_to_fit

Minimizes the amount of used memory.

Syntax

impl<T, H> Vec<T, H>
    where H: Allocator,
{
    fn shrink_to_fit(&mut self) -> Result<(), Errno>
}