rust/library/alloc
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
..
benches Reorder benches const variable 2020-09-29 21:39:24 +08:00
src add Vec::extend_from_within method 2021-01-31 22:30:19 +03:00
tests add Vec::extend_from_within method 2021-01-31 22:30:19 +03:00
Cargo.toml Update compiler_builtins to 0.1.39 2021-01-07 16:16:36 +09:00