rust-ascii icon indicating copy to clipboard operation
rust-ascii copied to clipboard

Introduce AsciiChar::from_digit constructor

Open mina86 opened this issue 1 year ago • 2 comments

Somewhat mimicking char::from_digit, introduce AsciiChar::from_digit method which returns an ASCII digit character corresponding to given digit.

mina86 avatar Dec 14 '23 04:12 mina86

You could rewrite the if statement as ALL.get(digit as usize).

vihdzp avatar Jul 20 '24 06:07 vihdzp

Unfortunately no, because [T]::get is not const.

mina86 avatar Jul 22 '24 19:07 mina86