Type resolution for std.builtin.Type.StructField

You can do something like this:

This post is also somewhat related and interesting How to construct a tuple at compile time using a for loop? - #5 by mlugg

Whether you should use these possibilities is another question…

1 Like