How to get the size of Rust types with -Zprint-type-sizes
When optimizing Rust code it’s sometimes useful to know how big a type is, i.e. how many bytes it takes up in memory. std::mem::size_of can tell you, but often you want to know the exact layout as well. For example, an enum might be surprisingly big, in which case you probably will want to know … Continue reading How to get the size of Rust types with -Zprint-type-sizes
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed