ErrorCode.reset

Resets this $(D_PSYMBOL ErrorCode) to default ($(D_PSYMBOL ErrorCode.success)).

struct ErrorCode
@nogc nothrow pure @safe
void
reset
()

Examples

auto ec = ErrorCode(ErrorCode.fault);
assert(ec == ErrorCode.fault);

ec.reset();
assert(ec == ErrorCode.success);

Meta