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

Method from_u64_eq

ctutils/src/choice.rs:231–233  ·  view source on GitHub ↗
(x: u64, y: u64)

Source from the content-addressed store, hash-verified

229 #[inline]
230 #[must_use]
231 pub const fn from_u64_eq(x: u64, y: u64) -> Self {
232 Self::from_u64_nz(x ^ y).not()
233 }
234
235 /// Returns [`Choice::TRUE`] if `x <= y` and [`Choice::FALSE`] otherwise.
236 #[inline]

Callers

nothing calls this directly

Calls 2

from_u64_nzFunction · 0.85
notMethod · 0.80

Tested by

no test coverage detected