Files
rust/library/core/src
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:

https://github.com/rust-lang/rust/blob/101e1822c3e54e63996c8aaa014d55716f3937eb/library/alloc/src/vec/mod.rs#L2479-L2492
2022-11-20 13:15:59 +09:00
..
2022-11-11 21:44:27 -08:00
2022-10-29 09:23:12 +02:00
2022-11-08 17:39:40 +01:00
2022-11-17 19:32:28 +01:00
2022-10-19 23:54:00 +01:00
2022-09-19 15:07:12 +02:00
2022-05-22 07:18:32 -03:00
2022-09-22 02:12:06 -04:00
2022-09-16 11:48:42 +08:00
2022-07-01 15:48:23 +02:00
2022-11-06 17:21:21 -05:00
2022-11-04 20:06:18 -07:00
2022-11-06 17:11:02 -05:00
2022-11-06 17:11:02 -05:00
2022-11-19 16:36:08 +01:00
2022-11-19 16:47:42 +01:00
2022-11-06 17:11:02 -05:00
2022-11-13 22:58:20 +00:00
2022-11-06 17:21:21 -05:00
2022-11-06 17:11:02 -05:00
2022-11-09 09:52:04 +01:00