Function rustc_middle::mir::pretty::hex_number_length
source · fn hex_number_length(x: u64) -> usize
Expand description
Calc converted u64 decimal into hex and return its length in chars.
ⓘ
assert_eq!(1, hex_number_length(0));
assert_eq!(1, hex_number_length(1));
assert_eq!(2, hex_number_length(16));