Iterating over a "packed" enum

You can use std.meta.fields to get all fields as a []const Type.EnumField.

1 Like