@memberCount

@memberCount

@memberCount(comptime T: type) comptime_int

This function returns the number of members in a struct, enum, or union type.

The result is a compile time constant.

It does not include functions, variables, or constants.