@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.
@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.
本文档使用 WanXiangYunDang 构建