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

Method from_u128_eq

ctutils/src/choice.rs:268–270  ·  view source on GitHub ↗
(x: u128, y: u128)

Source from the content-addressed store, hash-verified

266 #[inline]
267 #[must_use]
268 pub const fn from_u128_eq(x: u128, y: u128) -> Self {
269 Self::from_u128_nz(x ^ y).not()
270 }
271
272 /// Returns [`Choice::TRUE`] if `x <= y` and [`Choice::FALSE`] otherwise.
273 #[inline]

Callers

nothing calls this directly

Calls 2

from_u128_nzFunction · 0.85
notMethod · 0.80

Tested by

no test coverage detected