We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ecb9d2 commit 053531cCopy full SHA for 053531c
reference/src/layout/enums.md
@@ -353,6 +353,8 @@ enum Enum1<T> {
353
354
### Layout of single variant enums
355
356
+> **NOTE**: the guarantees in this section have not been approved by an RFC process.
357
+
358
**Single variant data-carrying*** enums without a `repr()` annotation have the
359
same layout as the variant field. **Single variant fieldless** enums have the
360
same layout as a unit struct.
@@ -393,6 +395,8 @@ layout as `SomeStruct`.
393
395
394
396
### Layout of multi-variant enums with one inhabited variant
397
398
399
400
The layout of **multi-variant** enums with **one inhabited variant** is the same
401
as that of the single-variant enum containing that same inhabited variant.
402
0 commit comments