fn declarations(comptime T: type) []const Type.Declaration

Instead of this function, prefer to use e.g. @typeInfo(foo).Struct.decls directly when you know what kind of type it is.

Parameters

T: type,