Enum member AssertModelOf

Asserts that the given model follows the specification of the given signature

enum AssertModelOf(alias _Model, alias _Sig, string file = __FILE__, int line = __LINE__) = true;

Example

struct X { int a; float z; }
struct Y { int a; float z; }
struct Z { int b; float z; }

static assert(isModelOf!(Y, X));