::std::conv::

Function int_to_uint

pub fn int_to_uint<#uint N>(input: int<N>) -> uint<N>
Expand

Casts a signed integer to an unsigned integer by reinterpreting its bits.

Examples

assert int_to_uint(13i8) == 13u8;
assert int_to_uint(-5i8) == 251u8;