Method lrs::vec::Vec::extend

Extends the vector by the elements of an iterator.

Syntax

impl<T, H> Vec<T, H>
    where H: Allocator,
{
    fn extend<I>(&mut self, iter: I) -> ()
        where I: IntoIterator<Item = T>,
}

Arguments

NameDescription
iter

The iter whose elements will be appended to the vector.

Remarks

This method aborts the process if no memory is available and allocating additional memory fails.