Extends the vector by the elements of an iterator.
impl<T, H> Vec<T, H>
where H: Allocator,
{
fn extend<I>(&mut self, iter: I) -> ()
where I: IntoIterator<Item = T>,
}| Name | Description |
|---|---|
| iter | The iter whose elements will be appended to the vector. |
This method aborts the process if no memory is available and allocating additional memory fails.