SwitchableContainer.SwitchableContainer.enabled - multiple declarations

Function SwitchableContainer.SwitchableContainer.enabled

Set the state of decorated.

SwitchableContainer.SwitchableContainer!T enabled (
  bool enabled
) nothrow @safe;

Set the state of decorated. Whether is enabled or disabled.

Parameters

NameDescription
enabled true to enable, false to disable.

Function SwitchableContainer.SwitchableContainer.enabled

Get the state of decorated (enabled/disabled).

inout inout(bool) enabled () nothrow @safe;

Get the state of decorated (enabled/disabled).

Returns

bool true if enabled or false if not.