(self, default: T)
| 452 | #[inline] |
| 453 | #[must_use] |
| 454 | pub fn unwrap_or(self, default: T) -> T |
| 455 | where |
| 456 | T: CtSelect, |
| 457 | { |
| 458 | default.ct_select(&self.value, self.is_some) |
| 459 | } |
| 460 | |
| 461 | /// Unconditionally computes `T::default()` using the [`Default`] trait, then returns either |
| 462 | /// the contained value if `self.is_some()` is [`Choice::TRUE`], or if it's [`Choice::FALSE`] |