코딩Coding/Rust★cargo★compiler
Rust](memory) How can I inspect the representation of a compiled type?
내인생PLUS
2022. 4. 4. 18:58
728x90
rustc +nightly -Zprint-type-sizes file.rs
rustc +nightly -Zprint-type-sizes file.rs
https://stackoverflow.com/questions/71550132/how-can-i-inspect-the-representation-of-a-compiled-type
How can I inspect the representation of a compiled type?
The nomicon gives an interesting way of displaying how a struct will eventually be laid out in memory. It also says that for the default representation, no guarantees are made. While I can check
stackoverflow.com
How can I inspect the representation of a compiled type?
반응형