lexical_util::digit

Function char_to_valid_digit_const

Source
pub const fn char_to_valid_digit_const(c: u8, radix: u32) -> u32
Expand description

Unchecked, highly optimized algorithm to convert a char to a digit. This only works if the input character is known to be a valid digit.