https://stackoverflow.com/questions/70587534/struct-padding-rules-in-rust

보니까

As far as Rust's rules go, the reference says "There are no guarantees of data layout made by [the default] representation." So in theory, the compiler can do whatever it wants and reorder fields based on access patterns. But in practice, I don't think its that elaborate and organizing by field size is a simple way to minimize padding.


이라네