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

Method from_u16_lsb

ctutils/src/choice.rs:163–165  ·  view source on GitHub ↗
(value: u16)

Source from the content-addressed store, hash-verified

161 #[inline]
162 #[must_use]
163 pub const fn from_u16_lsb(value: u16) -> Self {
164 Self((value & 0x1) as u8)
165 }
166
167 /// Returns [`Choice::TRUE`] if `x < y`, and [`Choice::FALSE`] otherwise.
168 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected