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

Method to_u8_mask

ctutils/src/choice.rs:460–462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

458 #[inline]
459 #[must_use]
460 pub const fn to_u8_mask(self) -> u8 {
461 self.to_u8().wrapping_neg()
462 }
463
464 /// Create a `u16` bitmask.
465 ///

Callers 1

select_u8Method · 0.80

Calls 1

to_u8Method · 0.80

Tested by

no test coverage detected