Sets the length of the vector.
impl<T, H> Vec<T, H>
where H: Allocator,
{
unsafe fn set_len(&mut self, len: usize) -> ()
}| Name | Description |
|---|---|
| len | The new length of the vector. |
If len is greater than the current capacity of the vector, the process is aborted.