@enumToInt
@enumToInt
@enumToInt(enum_or_tagged_union: anytype) anytype
Converts an enumeration value into its integer tag type. When a tagged union is passed, the tag value is used as the enumeration value.
If there is only one possible enum value, the resut is a comptime_int known at comptime.
See also:
- @intToEnum
