google / google/zerocopy

Support `#[repr(transparent)]` enums

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

Description

A [`#[repr(transparent)]` enum](https://doc.rust-lang.org/reference/type-layout.html#the-transparent-representation) is a single-variant enum whose variant has a single non-zero-sized field. Once #1752 lands, it should be relatively easy to add support for these.

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.