To dig into an aggregate, the first step is to get a list of members. Then, we'll be able to look at each individual member and dig as deeply as we need to.
Let's execute the following steps to get a list of all methods or fields in a module or object:
enumtype, you may use its name directly (or if it is passed to a template, the corresponding template parameter). To get a reference to a module, use
__traits(getMember). Use a helper template in the form of
alias helper(alias T) = T;and an