Simple library allowing you to quickly iterate over digits of unsigned integers.
Calling as_digits::<BASE>()
results in an Iterator, any function implementing Iterator will then be available.
let n = 123;
let digit_sum = n.as_digits::<10>().sum();
assert_eq!(digit_sum, 6);
let n = 0xBABE;
let digits = n.as_digits::<16>().collect_vec();
//notice the inverted order
assert_eq!(digits, vec![0xE, 0xB, 0xA, 0xB]);