(self)
| 420 | /// Convert [`Choice`] to a `u8`, attempting to apply a "best effort" optimization barrier. |
| 421 | #[must_use] |
| 422 | pub const fn to_u8(self) -> u8 { |
| 423 | // `black_box` is documented as working on a "best effort" basis. That's fine, this type is |
| 424 | // likewise documented as only working on a "best effort" basis itself. The only way we |
| 425 | // rely on `black_box` for correctness is it behaving as the identity function. |
| 426 | core::hint::black_box(self.0) |
| 427 | } |
| 428 | |
| 429 | /// DEPRECATED: previously a workaround to allow `const fn` boolean support on Rust 1.85. |
| 430 | /// |
no outgoing calls
no test coverage detected