nothrow pure @trusted @nogc void foo(); pure @nogc void bar(); @safe struct S { pure void foo() {} } FunctionAttributes!foo; // ["nothrow", "pure", "@trusted", "@nogc"] FunctionAttributes!bar; // ["pure", "@nogc", "@system"] FunctionAttributes!(S.foo); // ["pure", "@safe"]
Returns the functionAttributes of func as an array of strings