Rustacean Station  cover image

What's New in Rust 1.65, 1.66, and 1.67

Rustacean Station

CHAPTER

Enum Layout Optimization in Rasta Enums

Rasta Enums are unions that also get runtime carry information about which variant is currently active. Because of padding and alignment this can you know sometimes double the size of an enum compared to the optimized version. Russ deals with this by using niches, where unused values in any given type could kind of like hide the variant data inside.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner