pub fn fieldTypes(comptime T: type) []const type
pub fn fieldTypes(comptime T: type) []const type { return switch (@typeInfo(T)) { .@"struct" => |s| s.field_types, .@"union" => |u| u.field_types, else => @compileError("Expected struct or union type, found '" ++ @typeName(T) ++ "'"), }; }