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

Method to_u32_mask

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

Source from the content-addressed store, hash-verified

480 #[inline]
481 #[must_use]
482 pub const fn to_u32_mask(self) -> u32 {
483 (self.to_u8() as u32).wrapping_neg()
484 }
485
486 /// Create a `u64` bitmask.
487 ///

Callers 4

leading_zeros_u64Function · 0.80
trailing_zeros_u64Function · 0.80
leading_zeros_u32_softFunction · 0.80
select_u32Method · 0.80

Calls 1

to_u8Method · 0.80

Tested by

no test coverage detected