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

Method from_u32_eq

ctutils/src/choice.rs:194–196  ·  view source on GitHub ↗
(x: u32, y: u32)

Source from the content-addressed store, hash-verified

192 #[inline]
193 #[must_use]
194 pub const fn from_u32_eq(x: u32, y: u32) -> Self {
195 Self::from_u32_nz(x ^ y).not()
196 }
197
198 /// Returns [`Choice::TRUE`] if `x <= y` and [`Choice::FALSE`] otherwise.
199 #[inline]

Callers

nothing calls this directly

Calls 2

from_u32_nzFunction · 0.85
notMethod · 0.80

Tested by

no test coverage detected