Open
Description
We don't have a good explanation of the properties of padding. Currently we talk about it in two places:
- Type layout; It's pointed out that a type can have alignment padding that adds to the size.
- Added in clarify when reading uninititalized memory is allowed #852, it's pointed out that it can be set as uninitialized.
I think padding should probably be described in the type layout chapter.
My question though, other than being an unnameable psuedo-field that can theoretically have any value, does it have any other properties? E.g., can they be repurposed by enums to do niche optimizations (making it unsafe to set the value)? Other restrictions?