Trait method lrs::iter::IteratorExt::collect_into

Places the elements of the iterator into a slice until the slice or the iterator are exhausted.

Syntax

fn collect_into(&mut self, buf: &mut [<Self as Iterator>::Item]) -> usize

Arguments

NameDescription
buf

The buffer in which the elements will be placed.

Return value

Returns the number of elements placed in the buffer.