Result.ok

bool ok() const @safe pure nothrow @nogc

Reports whether the success alternative is active.

Returns

true when this result holds a success payload, false when it

holds an error payload (including the default-constructed state). Payload contents are never inspected.