(self)
| 389 | // TODO(tarcieri): `const fn` when MSRV 1.86 |
| 390 | #[must_use] |
| 391 | pub fn to_bool(self) -> bool { |
| 392 | self.to_u8() != 0 |
| 393 | } |
| 394 | |
| 395 | /// Convert [`Choice`] to a `u8`, attempting to apply a "best effort" optimization barrier. |
| 396 | // TODO(tarcieri): `const fn` when MSRV 1.86 |
no test coverage detected