pub fn char_to_digit(c: char, base: Base) -> Result<u8>
Parses a single character into a digit value in the given base.