isOk property
bool
isOk
Resturns true
if the result is Ok
(success)
Expamples
Basic usage:
Result<int, String> x = Ok(9);
expect(x.isOk, true);
Result<int, String> y = Err('An unexpected error occured');
expect(x.isOk, false);
Implementation
bool get isOk;