lexical_util::digit

Function digit_to_char

Source
pub unsafe fn digit_to_char(digit: u32) -> u8
Expand description

Convert a digit to a character. This uses a pre-computed table to avoid branching.

ยงSafety

Safe as long as digit < 36.