notZero

Value must not be equal to zero

@safe
@constraint
struct notZero {}

Members

Functions

check
bool check(T actual)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

errorMessage
enum string errorMessage;
Undocumented in source.

Examples

assert(test!notZero(1));
assert(test!notZero(2));
assert(test!notZero(-1));
assert(!test!notZero(0));

Meta