fn is_digit_of_radix(c: Option<char>, radix: u32) -> bool {
        match radix {
            2 => matches!(c, Some('0'..='1')),
            8 => matches!(c, Some('0'..='7')),
            10 => matches!(c, Some('0'..='9')),
            16 => matches!(c, Some('0'..='9') | Some('a'..='f') | Some('A'..='F')),
            other => unimplemented!("Radix not implemented: {}", other),
        }
    }
/// Test if a digit is of a certain radix.
Test if a digit is of a certain radix.
Test if a digit is of a certain radix .
fn is_digit_of_radix(c: Option<char>, radix: u32) -> bool {
        match radix {
            2 => matches!(c, Some('0'..='1')),
            8 => matches!(c, Some('0'..='7')),
            10 => matches!(c, Some('0'..='9')),
            16 => matches!(c, Some('0'..='9') | Some('a'..='f') | Some('A'..='F')),
            other => unimplemented!("Radix not implemented: {}", other),
        }
    }
fn is_digit_of_radix ( c : Option < char > , radix : u32 ) -> bool { match radix { 2 => matches ! ( c Some ( '0' '1' ) ) , 8 => matches ! ( c Some ( '0' '7' ) ) , 10 => matches ! ( c Some ( '0' '9' ) ) , 16 => matches ! ( c Some ( '0' '9' ) Some ( 'a' 'f' ) Some ( 'A' 'F' ) ) , other => unimplemented ! ( " " other ) , } }
Test if a digit is of a certain radix.
Test if a digit is of a certain radix .
c
Option<char>
radix
u32