[][src]Function rustils::parse::uint::i32_to_u32

pub fn i32_to_u32(a: i32) -> u32

Parse i32 to u32

Panics

rustils::parse::uint::i32_to_u32(-1_i32);

Arguments

  • a - Any i32 number

Examples

use rustils::parse::uint::i32_to_u32;

assert_eq!(i32_to_u32(0_i32), 0_u32);
assert_eq!(i32_to_u32(2147483647_i32), 2147483647_u32);