boolMask

fnMask boolMask(bool value) @safe

Creates a boolean mask that always returns the same value.

Parameters

valuetrue to match everything, false to match nothing

Returns

A new Mask instance.

Example:

auto all = boolMask(true);   // matches everything
auto none = boolMask(false); // matches nothing