I just saw these in the master branch standard library and documentation:
They seem to use a new standard library construct: std.meta.BackingInt()
Here’s an example of a function where they’re already being used: std.log.logEnabled()
While this is nothing that couldn’t have been implemented in userland with some imaginative use of switch(@typeInfo(@TypeOf(arg))), it’s exciting to see new convenience builtins, which will surely be cited in the release notes as “part of the ongoing effort to improve ergonomics for game development”.
I bet a lot more people will be more willing to play around with packed structs and enums with these new builtins in place, particularly stuff like non-exhaustive enums as indices for concepts like Data-Oriented Design.