Function hasMethod
Test if type (T) has specified method (m), local or derived
bool hasMethod(T, string m)();
Example
struct Foo
{
int bar() { return 0; }
}
assert(hasMethod!(Foo, "bar")() == true);
assert(hasMethod!(Foo, "foo")() == false);