Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ from_u16_nz
Method
from_u16_nz
ctutils/src/choice.rs:185–187 ·
view source on GitHub ↗
(value: u16)
Source
from the content-addressed store, hash-verified
183
#[inline]
184
#[must_use]
185
pub const fn from_u16_nz(value: u16) -> Self {
186
crate::primitives::nz_u16(value)
187
}
188
189
// u32
190
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected