google / google/zerocopy

Implement `IntoBytes` for `MaybeUninit<T>` where `T` is a ZST?

Open
#123 0 comments 0 reactions 0 assignees View on GitHub
compatibility-nonbreaking
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

*See also: #1316*

It would probably be sound to implement `AsBytes` for `MaybeUninit` where `T` is a ZST, although it'd definitely require some thought to make sure that's true.

While we're here, there may be other edge cases like this for other types or traits.

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.