Performs a side-effect with the contained value if this is an Ok.
Result<T> ifOk(@noFuturesAllowed void Function(Ok<T> ok) noFuturesAllowed);