Rust Internals
Enum with tag at end
language design
SkiFire13
January 2, 2023, 11:09am
3
Also see
Pre-RFC: Allow array stride != size
4 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
For structs that have fields that have only one possible representation, enums should use that field as the discriminant
language design
5
300
June 8, 2026
Optimizing layout of nested enums?
compiler
18
13039
November 15, 2017
Pre-Pre-RFC: Dynamically sized enum types
language design
7
1006
May 1, 2021
Bitpacking the flag and data of an enum
language design
9
1638
October 5, 2020
A #[repr] to allow an enum containing enums to use a single discriminant
language design
14
1823
February 10, 2020