pub fn half_byte_to_hex(i: u8) -> u8 {
    let h = i & 0xF;
    if h < 0xA {
        b'0' + h
    } else {
        b'A' + (h - 0xA)
    }
}
/// Convert a nibble to a hex char
Convert a nibble to a hex char
Convert a nibble to a hex char
pub fn half_byte_to_hex(i: u8) -> u8 {
    let h = i & 0xF;
    if h < 0xA {
        b'0' + h
    } else {
        b'A' + (h - 0xA)
    }
}
pub fn half_byte_to_hex ( i : u8 ) -> u8 { let h = i & 0xF ; if h < 0xA { b'0' + h } else { b'A' + ( h - 0xA ) } }
Convert a nibble to a hex char
Convert a nibble to a hex char
i
u8
i
u8