Skip to main content

to_usize_saturating

Function to_usize_saturating 

Source
fn to_usize_saturating(x: u64) -> usize
Expand description

Convert a u64 to a usize, saturating if the value would overflow.