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