Matthias Krüger 31003a3089
Rollup merge of #88906 - Kixunil:box-maybe-uninit-write, r=dtolnay
Implement write() method for Box<MaybeUninit<T>>

This adds method similar to `MaybeUninit::write` main difference being
it returns owned `Box`. This can be used to elide copy from stack
safely, however it's not currently tested that the optimization actually
occurs.

Analogous methods are not provided for `Rc` and `Arc` as those need to
handle the possibility of sharing. Some version of them may be added in
the future.

This was discussed in #63291 which this change extends.
2021-12-03 06:24:11 +01:00
..
2021-10-10 15:38:19 +02:00
2021-10-10 16:32:16 +02:00
2021-10-10 15:38:19 +02:00
2021-10-10 15:38:19 +02:00
2021-12-02 15:45:40 +00:00
2021-10-21 23:08:57 +02:00
2021-10-10 15:38:19 +02:00
2021-11-07 16:59:05 +01:00
2021-10-10 15:38:19 +02:00
2021-10-10 15:38:19 +02:00