Files
rust/library/alloc/src
Waffle d5c221107e add Vec::extend_from_within method
Implement <https://github.com/rust-lang/rfcs/pull/2714>, changes from the RFC:
- Rename the method `append_from_within` => `extend_from_within`
- Loose :Copy bound => :Clone
- Specialize in case of :Copy

This commit also adds `Vec::split_at_spare` private method and use it to implement
`Vec::spare_capacity_mut` and `Vec::extend_from_within`. This method returns 2
slices - initialized elements (same as `&mut vec[..]`) and uninitialized but
allocated space (same as `vec.spare_capacity_mut()`).
2021-01-31 22:30:19 +03:00
..
2020-07-27 19:51:13 -05:00
2021-01-31 22:30:19 +03:00
2020-11-07 12:50:57 -08:00
2021-01-31 22:30:19 +03:00
2020-12-11 10:09:40 -05:00
2020-07-27 19:51:13 -05:00