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

Method to_u64_mask

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

Source from the content-addressed store, hash-verified

491 #[inline]
492 #[must_use]
493 pub const fn to_u64_mask(self) -> u64 {
494 (self.to_u8() as u64).wrapping_neg()
495 }
496
497 /// Create a `u128` bitmask.
498 ///

Callers 1

select_u64Method · 0.80

Calls 1

to_u8Method · 0.80

Tested by

no test coverage detected