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

Method from_u8_lsb

ctutils/src/choice.rs:118–120  ·  view source on GitHub ↗
(value: u8)

Source from the content-addressed store, hash-verified

116 #[inline]
117 #[must_use]
118 pub const fn from_u8_lsb(value: u8) -> Self {
119 Self(value & 0x1)
120 }
121
122 /// Returns [`Choice::TRUE`] if `x < y`, and [`Choice::FALSE`] otherwise.
123 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected