fn byte_to_hex_digit(b: u8) -> Option<u32>