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

Method from_u128_lsb

ctutils/src/choice.rs:289–291  ·  view source on GitHub ↗
(value: u128)

Source from the content-addressed store, hash-verified

287 #[inline]
288 #[must_use]
289 pub const fn from_u128_lsb(value: u128) -> Self {
290 Self((value & 1) as u8)
291 }
292
293 /// Returns [`Choice::TRUE`] if `x < y`, and [`Choice::FALSE`] otherwise.
294 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected