rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.82k stars 263 forks source link

other-reprs: Add details for n!=1 repr(packed) #460

Open luqmana opened 1 month ago

luqmana commented 1 month ago

Expand the repr(packed) section to note if also supports an explicit power-of-two argument like repr(align(n)).