rust/library/core
bors ddbc6176de Auto merge of #79607 - DrMeepster:maybe_uninit_write_slice, r=m-ou-se
MaybeUninit::copy/clone_from_slice

This PR adds 2 new methods to MaybeUninit under the feature of `maybe_uninit_write_slice`: `copy_from_slice` and `clone_from_slice`.

These are useful for initializing uninitialized buffers (such as the one returned by `Vec::spare_capacity_mut` for example) with initialized data.

The methods behave similarly to the methods on slices, but the destination is uninitialized and they return the destination slice as an initialized slice.
2020-12-16 06:26:51 +00:00
..
benches Remove redundant 'static from library crates 2020-10-18 17:25:51 +02:00
src Auto merge of #79607 - DrMeepster:maybe_uninit_write_slice, r=m-ou-se 2020-12-16 06:26:51 +00:00
tests write_slice(_cloned) 2020-12-15 12:21:33 -08:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00