"In a "Rust is not C" moment, I'..." <- > <@shakencodes:matrix.org> In a "Rust is not C" moment, I've discovered that Rust does not guarantee the order of data in structs (unless you set the repr attribute.) I have deployed hardware with firmware written in Rust that has data in a Rust data structure written to flash memory that I now realize does not have the fields in the order I expected. (I've also realizes that the read order can change when the compiler updates.) > How can I determine the current layout of the data structure in memory? (I'm hoping there is some nice bit of tooling. If I have to reverse engineer this... the data structure is not so large/complex as to make it unmanageable.) when i was young, we'd use ReClass for GUI mapping of structures, vtable mapping, etc