(self, err: E)
| 363 | /// - Returns `err` in the event `self.is_some()` is [`Choice::FALSE`]. |
| 364 | #[inline] |
| 365 | pub fn ok_or<E>(self, err: E) -> Result<T, E> { |
| 366 | self.into_option().ok_or(err) |
| 367 | } |
| 368 | |
| 369 | /// Transforms a `CtOption<T>` into a `Result<T, E>` by unconditionally calling the provided |
| 370 | /// callback value and using its result in the event `self.is_some()` is [`Choice::FALSE`]. |
no test coverage detected