/// Find the smallest Integer type which can represent the signed value.
Find the smallest Integer type which can represent the signed value.
Find the smallest Integer type which can represent the signed value .
pub fn fit_signed(x: i64) -> Integer {
        match x {
            -0x0000_0001...0x0000_0000 => I1,
            -0x0000_0080...0x0000_007f => I8,
            -0x0000_8000...0x0000_7fff => I16,
            -0x8000_0000...0x7fff_ffff => I32,
            _ => I64
        }
    }
pub fn fit_signed ( x : i64 ) -> Integer { match x { - 0x0000_0001 ... 0x0000_0000 => I1 , - 0x0000_0080 ... 0x0000_007f => I8 , - 0x0000_8000 ... 0x0000_7fff => I16 , - 0x8000_0000 ... 0x7fff_ffff => I32 , _ => I64 } }
Find the smallest Integer type which can represent the signed value.
Find the smallest Integer type which can represent the signed value .
x
i64