boilerplate.conditions

Undocumented in source.

Members

Enums

IsConditionAttribute
eponymoustemplate IsConditionAttribute(alias A)

Undocumented in source.

Functions

generateChecksForAttributes
string generateChecksForAttributes(string memberExpression, string info)

Undocumented in source. Be warned that the author may not have intended to support it.

generateChecksForAttributes
string generateChecksForAttributes(string memberExpression, string info)

Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

GenerateInvariantsTemplate
mixintemplate GenerateInvariantsTemplate()

Undocumented in source.

Structs

AllNonNull
struct AllNonNull

When a field is marked with @AllNonNull, field.all!"a !is null" is asserted.

NonEmpty
struct NonEmpty

When a field is marked with @NonEmpty, !field.empty is asserted.

NonInit
struct NonInit

When a field is marked with @NonInit, field !is T.init is asserted.

NonNull
struct NonNull

When a field is marked with @NonNull, field !is null is asserted.

Variables

GenerateInvariants
enum string GenerateInvariants;

GenerateInvariants is a mixin string that automatically generates an invariant{} block for each field with a condition.

Meta