Result of an operation that can either succeed or fail.
IResult is an union type that represents the result of an operation
that can either succeed or fail.
You can distinguished the result by checking the IResult.success value,
and if it's true, the success value is stored in IResult.value.
Otherwise, if it's false, the error value is stored in IResult.error.
Result of an operation that can either succeed or fail.
IResult
is an union type that represents the result of an operation that can either succeed or fail.You can distinguished the result by checking the IResult.success value, and if it's
true
, the success value is stored in IResult.value. Otherwise, if it'sfalse
, the error value is stored in IResult.error.