- Published on
Article · Through the layers
Rust Enum Niches: How Option<T> Can Cost No Extra Byte
Measured Rust enum layouts showing how invalid payload values encode Option discriminants, which optimizations are guaranteed, and what repr changes.
Article · Through the layers