okOrElseForNullable
Transforms the Nullable<T>
into a Result<T, E>
by mapping T
to Ok(T)
.
If input
is null
, then returns Err(E)
with the result of recoverer()
Transforms the Nullable<T>
into a Result<T, E>
by mapping T
to Ok(T)
.
If input
is null
, then returns Err(E)
with the result of recoverer()