pub fn usize_into_u32(n: usize) -> Result<u32, ()>