Support `MaybeUninit<T: ?Sized>` via `KnownLayout`
Open
- Dominant language
- Rust
- Stars
- 2.6k
- Forks
- 179
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 29
Description
*This is prototyped in #1822.*
This could help unify many standard library APIs that are currently duplicated, and make them more powerful.
For example, consider this duplication:
- https://doc.rust-lang.org/std/boxed/struct.Box.html#method.new_uninit
- https://doc.rust-lang.org/std/boxed/struct.Box.html#method.new_uninit_slice
This could be used to support an unsized `MaybeValid` - #1833
Contributor guide
Assessment
This issue has not been assessed yet.