MCPcopy Create free account
hub / github.com/RustCrypto/utils / from_u8_eq

Method from_u8_eq

ctutils/src/choice.rs:104–106  ·  view source on GitHub ↗
(x: u8, y: u8)

Source from the content-addressed store, hash-verified

102 #[inline]
103 #[must_use]
104 pub const fn from_u8_eq(x: u8, y: u8) -> Self {
105 Self::from_u8_nz(x ^ y).not()
106 }
107
108 /// Returns [`Choice::TRUE`] if `x <= y` and [`Choice::FALSE`] otherwise.
109 #[inline]

Callers

nothing calls this directly

Calls 2

from_u8_nzFunction · 0.85
notMethod · 0.80

Tested by

no test coverage detected