Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ from_u32_nz
Method
from_u32_nz
ctutils/src/choice.rs:222–224 ·
view source on GitHub ↗
(value: u32)
Source
from the content-addressed store, hash-verified
220
#[inline]
221
#[must_use]
222
pub const fn from_u32_nz(value: u32) -> Self {
223
crate::primitives::nz_u32(value)
224
}
225
226
// u64
227
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected