Struct Flag

This can be used like std.typecons.Flag but has a nicer API that doesn't use strings or the Yes. and No. constructs.

struct Flag ;

Since

0.13.0

See Also

- https://forum.dlang.org/post/ohrilhjbhddjkkqznlsn@forum.dlang.org

Example

auto f(Flag.closed closed = true) {
    return closed;
}
assert( f(Flag.closed = true));
assert(!f(Flag.closed = false));