Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ to_u8_mask
Method
to_u8_mask
ctutils/src/choice.rs:436–438 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
434
#[inline]
435
#[must_use]
436
pub const fn to_u8_mask(self) -> u8 {
437
self.0.wrapping_neg()
438
}
439
440
/// Create a `u16` bitmask.
441
///
Callers
1
select_u8
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected