You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the nomicon, repr(packed) guarantees that all inter-field padding is removed. However, the reference merely says that "packedmay 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)?