Rustacean Station  cover image

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

Rustacean Station

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app