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

Method from_u64_lsb

ctutils/src/choice.rs:245–247  ·  view source on GitHub ↗
(value: u64)

Source from the content-addressed store, hash-verified

243 #[inline]
244 #[must_use]
245 pub const fn from_u64_lsb(value: u64) -> Self {
246 Self((value & 0x1) as u8)
247 }
248
249 /// Returns [`Choice::TRUE`] if `x < y`, and [`Choice::FALSE`] otherwise.
250 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected