(self, err: F)
| 381 | #[inline] |
| 382 | #[allow(clippy::missing_errors_doc)] |
| 383 | pub fn ok_or_else<E, F>(self, err: F) -> Result<T, E> |
| 384 | where |
| 385 | F: FnOnce() -> E, |
| 386 | { |
| 387 | self.ok_or(err()) |
| 388 | } |
| 389 | |
| 390 | /// Returns `self` if `self.is_some()` is [`Choice::TRUE`], otherwise returns `optb`. |
| 391 | #[inline] |