unwrapOrElse abstract method

T unwrapOrElse(
  1. T op(
    1. E
    )
)

Unwraps a result, yielding the content of an Ok. If the value is an Err then it calls op with its value.

Implementation

T unwrapOrElse(T Function(E) op);