(self, msg: &str)
| 123 | #[must_use] |
| 124 | #[track_caller] |
| 125 | pub fn expect(self, msg: &str) -> T { |
| 126 | assert!(self.is_some().to_bool(), "{}", msg); |
| 127 | self.value |
| 128 | } |
| 129 | |
| 130 | /// Return the contained value, consuming the `self` value, with `const fn` support. |
| 131 | /// |
no outgoing calls