Places the elements of the iterator into a slice until the slice or the iterator are exhausted.
fn collect_into(&mut self, buf: &mut [<Self as Iterator>::Item]) -> usize
| Name | Description |
|---|---|
| buf | The buffer in which the elements will be placed. |
Returns the number of elements placed in the buffer.