rust-ascii
rust-ascii copied to clipboard
Introduce AsciiChar::from_digit constructor
Somewhat mimicking char::from_digit, introduce AsciiChar::from_digit method which returns an ASCII digit character corresponding to given digit.
You could rewrite the if statement as ALL.get(digit as usize).
Unfortunately no, because [T]::get is not const.