Skip to main content

to_usize

Function to_usize 

Source
pub fn to_usize(value: f64) -> usize
Expand description

Truncates a small non-negative value to usize. Callers bound it first; out-of-range input yields zero.