Re:The Serde Rust Framework
by Nullabillity on Friday October 15, 2021 @07:46AM
(#28876725)
They are padded for aligned access, so on amd64 Option<u64> will be 16 bytes.[0] However, the unused discriminant values are counted as niches for enums wrapping that, so Option<Option<u64>> is still 16 bytes (for example).
[0]: https://play.rust-lang.org/?version=stable&mode=debug&editio...