(self, f: F)
| 319 | #[inline] |
| 320 | #[must_use] |
| 321 | pub fn map<U, F>(self, f: F) -> CtOption<U> |
| 322 | where |
| 323 | F: FnOnce(T) -> U, |
| 324 | { |
| 325 | CtOption::new(f(self.value), self.is_some) |
| 326 | } |
| 327 | |
| 328 | /// Maps a `CtOption<T>` to a `U` value, eagerly evaluating the provided function, and returning |
| 329 | /// the supplied `default` in the event `self.is_some()` is [`Choice::FALSE`]. |
no outgoing calls
no test coverage detected