ok

Undocumented in source. Be warned that the author may not have intended to support it.
ok
(
T
string prettyFun = __PRETTY_FUNCTION__
string funName = __FUNCTION__
)
()

Examples

static assert(__traits(compiles, () => 10.ok));
static assert(is(typeof(() { return 10.ok; } ()) == Ok!int));
static assert(__traits(compiles, function Result!int() => 10.ok));

Meta