Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCrypto/utils
/ from_u8_nz
Method
from_u8_nz
ctutils/src/choice.rs:140–142 ·
view source on GitHub ↗
(value: u8)
Source
from the content-addressed store, hash-verified
138
#[inline]
139
#[must_use]
140
pub const fn from_u8_nz(value: u8) -> Self {
141
crate::primitives::nz_u8(value)
142
}
143
144
// u16
145
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected