kas::text::conv
pub fn to_u32(x: usize) -> u32
Convert usize → u32
usize
u32
This is a "safer" wrapper around as ensuring (on debug builds) that the input value may be represented correctly by u32.
as