(self)
| 442 | #[must_use] |
| 443 | #[track_caller] |
| 444 | pub fn unwrap(self) -> T { |
| 445 | assert!( |
| 446 | self.is_some.to_bool(), |
| 447 | "called `CtOption::unwrap()` on a value with `is_some` set to `Choice::FALSE`" |
| 448 | ); |
| 449 | self.value |
| 450 | } |
| 451 | |
| 452 | /// Return the contained value in the event `self.is_some()` is [`Choice::TRUE`], or if not, |
| 453 | /// uses a provided default. |
no outgoing calls