Function ring::polyfill::usize_from_u64_saturated

source ยท
pub const fn usize_from_u64_saturated(x: u64) -> usize
Expand description

const-capable x.try_into().unwrap_or(usize::MAX)