Methods

Returns a tuple of each method in the form of the Quirks template

@safe
template Methods (
alias aggregate
) if (
isAggregate!aggregate ||
isModule!aggregate
) {}

Members

Aliases

Methods
alias Methods = AliasTuple!()
Undocumented in source.

Functions

generateNames
auto generateNames()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

struct S {
    long id;
    int age;
    string name() {
        return "name";
    }
}

alias fields = Methods!S;

static foreach (method; fields) {
    pragma(msg, method.returnType);
    pragma(msg, method.name);
}

Meta