Why aren’t Rust structs laid out in memory like C structs by default?
I’m curious why C style isn’t the default memory layout for structs in Rust. I imagine there’s some optimization that can be done if structs have a layout that’s opaque to the developer. Does anyone have an example of this type of optimization?