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

Method from_u32_lsb

ctutils/src/choice.rs:208–210  ·  view source on GitHub ↗
(value: u32)

Source from the content-addressed store, hash-verified

206 #[inline]
207 #[must_use]
208 pub const fn from_u32_lsb(value: u32) -> Self {
209 Self((value & 0x1) as u8)
210 }
211
212 /// Returns [`Choice::TRUE`] if `x < y`, and [`Choice::FALSE`] otherwise.
213 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected