SetInfo.this

Allow initialization as a field

This sets the field as having been set, so that:

struct Config { SetInfo!Duration timeout; }

Config myConf = { timeout: 10.minutes }

Will behave as if set explicitly. If this behavior is not wanted, pass false as second argument:

Config myConf = { timeout: SetInfo!Duration(10.minutes, false) }
struct SetInfo(T)
@safe pure nothrow @nogc
this
(,
bool isSet = true
)

Meta