google / google/zerocopy

Support `MaybeUninit<T: ?Sized>` via `KnownLayout`

Open
#1,797 0 comments 1 reaction 1 assignee Claimed by @jswrenn View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.