Did you know struct layout in Rust is technically undefined? The compiler can si...

@mainmatter@fosstodon.org

Did you know struct layout in Rust is technically undefined? The compiler can silently reorder your fields to save space, you can watch it happen on Compiler Explorer.

More in our free migration course:
mainmatter.com/c-to-rust-migra

#RustLang