rustils::parse::intFunction usize_to_i32
Source pub fn usize_to_i32(a: usize) -> i32
Expand description
Parse usize
to
i32
§Panics
ⓘrustils::parse::int::usize_to_i32(2147483648_usize);
§Arguments
§Examples
use rustils::parse::int::usize_to_i32;
assert_eq!(usize_to_i32(0_usize), 0_i32);
assert_eq!(usize_to_i32(2147483647_usize), 2147483647_i32);