unwrap method
T
unwrap()
Unwraps the result, returning the success value or throwing the error
Implementation
T unwrap() {
return switch (this) {
Success(:final value) => value,
Failure(:final error) => throw error,
};
}