Switchable.enabled - multiple declarations

Function Switchable.enabled

Get the state of object.

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

Get the state of object. Whether is enabled or not.

Returns

bool true if enabled or false if not.

Function Switchable.enabled

Set the state of object.

abstract Switchable enabled (
  bool enable
) nothrow @property @safe;

Set the state of object. Whether is enabled or not.

Parameters

NameDescription
enable true to enable, false to disable.