Skip to content

Repr practice problems in Rust

Difficulty:
Category:
Tag:

Showing 3 of 3

Status Title Difficulty
Discriminants, #[repr(u8)], as casts and mem::discriminant Medium
repr(Rust) reorders your fields — and that's the point Medium
The other reprs: transparent, packed, align, integer enums Hard