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

Method from_u16_eq

ctutils/src/choice.rs:149–151  ·  view source on GitHub ↗
(x: u16, y: u16)

Source from the content-addressed store, hash-verified

147 #[inline]
148 #[must_use]
149 pub const fn from_u16_eq(x: u16, y: u16) -> Self {
150 Self::from_u16_nz(x ^ y).not()
151 }
152
153 /// Returns [`Choice::TRUE`] if `x <= y` and [`Choice::FALSE`] otherwise.
154 #[inline]

Callers

nothing calls this directly

Calls 2

from_u16_nzFunction · 0.85
notMethod · 0.80

Tested by

no test coverage detected