has

Callables checks

@safe pure nothrow
has

Examples

Checks if it has an attribute of type

@("test")
void test(string, int) { }

enum item = describeCallable!test;

item.has.anyParameterOfType("other").should.equal(false);
item.has.anyParameterOfType("string").should.equal(true);
item.has.anyParameterOfType("int").should.equal(true);

Meta