| ... | ... | @@ -4710,8 +4710,11 @@ fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_val |
| 4710 | 4710 | Converts an integer into an {#link|enum#} value. The return type is the inferred result type. |
| 4711 | 4711 | </p> |
| 4712 | 4712 | <p> |
| 4713 | | Attempting to convert an integer which represents no value in the chosen enum type invokes |
| 4713 | Attempting to convert an integer with no corresponding value in the enum invokes |
| 4714 | 4714 | safety-checked {#link|Undefined Behavior#}. |
| 4715 | Note that a {#link|non-exhaustive enum|Non-exhaustive enum#} has corresponding values for all |
| 4716 | integers in the enum's integer tag type: the {#syntax#}_{#endsyntax#} value represents all |
| 4717 | the remaining unnamed integers in the enum's tag type. |
| 4715 | 4718 | </p> |
| 4716 | 4719 | {#see_also|@intFromEnum#} |
| 4717 | 4720 | {#header_close#} |