pub fn compute_check_digit(base: &str, uf: State) -> Option<u8>
SP-only: compute the check digit for an 8-digit base. Returns Some(0..=9) or Some(10) (caller renders as 'X'); None for non-SP or wrong length.
Some(0..=9)
Some(10)
'X'
None