Skip to content

Alignment practice problems in Rust

Difficulty:
Category:
Tag:

Showing 4 of 4

Status Title Difficulty
`&raw const` / `&raw mut`: a pointer without a reference Medium
repr(C): computing struct layout by hand Medium
repr(Rust) reorders your fields — and that's the point Medium
The other reprs: transparent, packed, align, integer enums Hard