AssertModelOf

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

Members

Aliases

Model
alias Model = TypesOf!_Model[0]
Undocumented in source.
Sig
alias Sig = TypesOf!_Sig[0]
Undocumented in source.

Functions

addLocation
string addLocation(string str)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

AssertModelOf
enum AssertModelOf;
Undocumented in source.

Variables

errors
auto errors;
Undocumented in source.

Examples

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

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

Meta