Open
Description
Per the nomicon, repr(packed)
guarantees that all inter-field padding is removed. However, the reference merely says that "packed
may also alter the padding between fields" (emphasis added).
What guarantees does repr(packed)
provide? In particular:
- Does
repr(packed)
guarantee that all inter-field padding is removed? - Does
repr(packed)
guarantee that a type's layout is fixed in any way other than removing padding (e.g., field ordering)?
Metadata
Metadata
Assignees
Labels
No labels