Rust Internals
Optimizing layout of nested enums?
compiler
SimonSapin
April 17, 2017, 3:05pm
10
Not rouding size of types up to a multiple of alignment?
is possibly related.
show post in topic
Related topics
Topic
Replies
Views
Activity
Pre-RFC: Orthogonal Discriminants
language design
26
1310
August 25, 2026
Pre-RFC - Add alignment niches for references
language design
18
3350
December 10, 2021
A #[repr] to allow an enum containing enums to use a single discriminant
language design
14
1880
February 10, 2020
For structs that have fields that have only one possible representation, enums should use that field as the discriminant
language design
5
354
June 8, 2026
Unreachable variants of enum still impact layout
language design
10
1695
June 17, 2022