struct_params

Defines means to pass structs with default values that may be unspecified.

Members

Functions

callFunctionWithParamsStruct
ReturnType!f callFunctionWithParamsStruct(S s)
callMemberFunctionWithParamsStruct
ReturnType!(__traits(getMember, o, f)) callMemberFunctionWithParamsStruct(S s)
combine
deprecated S.Regular combine(S.WithDefaults main, S.Regular default_)

Creates a "combined" structure from main and default_. The combined structure contains member values from main whenever !isNull for this value and otherwise values from default_.

combine
S.Regular combine(S.WithDefaults main, S.WithDefaults default_)

Creates a "combined" structure from main and default_. The combined structure contains member values from main whenever !isNull for this value and otherwise values from default_. Assertion error if both a member of main and of default_ are null.

combine
S.Regular combine(S.WithDefaults main, S.Func default_)

Creates a "combined" structure from main and default_. The combined structure contains member values from main whenever !isNull for this value and otherwise calculated values from default_. Assertion error if both a member of main and of default_ are null.

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

Mixin templates

StructParams
mixintemplate StructParams(string name, Fields...)

Meta