Skip to content

Layout practice problems in Rust

Difficulty:
Category:
Tag:

Showing 6 of 6

Status Title Difficulty
`large_enum_variant`: boxing the fat variant Medium
Memory layout and cache behaviour: flat arrays, AoS vs SoA Medium
repr(C): computing struct layout by hand Medium
repr(Rust) reorders your fields — and that's the point Medium
Stack, heap, and what a variable actually holds Easy
Type sizes, enum layout and niche optimisation Medium