Matthias Krüger d5c05fcc8a
Rollup merge of #93057 - frengor:iter_collect_into, r=m-ou-se
Add Iterator::collect_into

This PR adds `Iterator::collect_into` as proposed by ``@cormacrelf`` in #48597 (see https://github.com/rust-lang/rust/pull/48597#issuecomment-842083688).
Followup of #92982.

This adds the following method to the Iterator trait:

```rust
fn collect_into<E: Extend<Self::Item>>(self, collection: &mut E) -> &mut E
```
2022-03-09 23:14:11 +01:00
..
2022-02-02 23:07:02 +09:00
2022-02-20 01:57:32 +01:00
2021-06-03 16:13:45 +02:00
2022-02-10 22:10:08 +00:00
2021-10-18 19:19:28 +09:00
2021-12-15 00:11:23 +08:00
2021-10-18 19:19:28 +09:00
2021-03-03 11:23:29 +01:00
2022-01-28 15:01:07 +01:00
2022-02-02 23:07:02 +09:00
2022-02-25 08:00:52 -05:00
2021-10-18 19:19:28 +09:00
2022-02-10 22:10:08 +00:00
2021-11-21 19:10:39 -08:00
2021-12-17 20:46:47 +08:00
2021-10-17 18:39:54 +09:00
2022-03-03 14:54:18 -05:00