boilerplate.conditions

Members

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