okOr<E extends Object> method
Transforms the Option
Implementation
Result<T, E> okOr<E extends Object>(E err) {
if (v == null) {
return Err(err);
} else {
return Ok(v!);
}
}
Transforms the Option
Result<T, E> okOr<E extends Object>(E err) {
if (v == null) {
return Err(err);
} else {
return Ok(v!);
}
}