Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ to_u16_mask
Method
to_u16_mask
ctutils/src/choice.rs:471–473 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
469
#[inline]
470
#[must_use]
471
pub const fn to_u16_mask(self) -> u16 {
472
(self.to_u8() as u16).wrapping_neg()
473
}
474
475
/// Create a `u32` bitmask.
476
///
Callers
1
select_u16
Method · 0.80
Calls
1
to_u8
Method · 0.80
Tested by
no test coverage detected