rust/library
Waffle cd6dad641c Make Vec::split_at_spare_mut public
This commit introduces a new method to the public API, under
`vec_split_at_spare` feature gate:

```rust
impl<T, A: Allocator> impl Vec<T, A> {
    pub fn split_at_spare_mut(&mut self) -> (&mut [T], &mut [MaybeUninit<T>]);
}
```

The method returns 2 slices, one slice references the content of the vector,
and the other references the remaining spare capacity.

The method was previously implemented while adding `Vec::extend_from_within`,
and used to implement `Vec::spare_capacity_mut` (as the later is just a
subset of former one).
2021-02-03 01:56:51 +03:00
..
alloc Make Vec::split_at_spare_mut public 2021-02-03 01:56:51 +03:00
backtrace@af078ecc0b
core Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov 2021-02-02 14:52:53 +00:00
panic_abort
panic_unwind stabilize int_bits_const 2021-01-31 21:50:47 +10:00
proc_macro
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #81022 - seanchen1991:feat/frames-iter, r=KodrAus 2021-02-02 12:14:49 +01:00
stdarch@9c732a56f6
term
test Rollup merge of #80053 - gilescope:include-ignore, r=m-ou-se 2021-01-31 01:47:22 +01:00
unwind