pub fn hex_to_byte(c: u8) -> Result<u8, ()> {
    return match c {
        b'0'..=b'9' => Ok(c - b'0'),
        b'a'..=b'f' => Ok(c - b'a' + 10),
        b'A'..=b'F' => Ok(c - b'A' + 10),
        _ => Err(()),
    };
}
// Takes a ASCII hex number [0-9a-fA-F] and returns the value as a u8
Takes a ASCII hex number [0-9a-fA-F] and returns the value as a u8
Takes a ASCII hex number [ 0 - 9a - fA - F ] and returns the value as a u8
pub fn hex_to_byte(c: u8) -> Result<u8, ()> {
    return match c {
        b'0'..=b'9' => Ok(c - b'0'),
        b'a'..=b'f' => Ok(c - b'a' + 10),
        b'A'..=b'F' => Ok(c - b'A' + 10),
        _ => Err(()),
    };
}
pub fn hex_to_byte ( c : u8 ) -> Result < u8 , ( ) > { return match c { b'0' ..= b'9' => Ok ( c - b'0' ) , b'a' ..= b'f' => Ok ( c - b'a' + 10 ) , b'A' ..= b'F' => Ok ( c - b'A' + 10 ) , _ => Err ( ( ) ) , } ; }
Takes a ASCII hex number [0-9a-fA-F] and returns the value as a u8
Takes a ASCII hex number [ 0 - 9a - fA - F ] and returns the value as a u8
c
u8