Yuki Okushi 785237d392
Rollup merge of #104435 - scottmcm:iter-repeat-n, r=thomcc
`VecDeque::resize` should re-use the buffer in the passed-in element

Today it always copies it for *every* appended element, but one of those clones is avoidable.

This adds `iter::repeat_n` (https://github.com/rust-lang/rust/issues/104434) as the primitive needed to do this.  If this PR is acceptable, I'll also use this in `Vec` rather than its custom `ExtendElement` type & infrastructure that is harder to share between multiple different containers:

101e1822c3/library/alloc/src/vec/mod.rs (L2479-L2492)
2022-11-20 13:15:59 +09:00
..
2022-11-08 17:39:40 +01:00
2022-10-08 11:48:53 +00:00
2022-07-13 17:07:41 -07:00
2022-05-20 11:04:13 -03:00
2022-05-22 07:18:32 -03:00
2021-12-15 00:11:23 +08:00
2022-05-20 11:16:30 -07:00
2022-02-02 23:07:02 +09:00
2022-02-25 08:00:52 -05:00
2022-11-06 17:21:21 -05:00
2022-09-27 19:23:52 +00:00
2022-11-19 16:58:02 +01:00
2022-10-07 18:08:49 +02:00
2022-08-20 12:49:20 -04:00
2022-09-14 14:53:16 +02:00
2022-07-08 21:18:15 +00:00
2022-06-27 13:30:44 -04:00