Skip to main content

compute_check_digit

Function compute_check_digit 

Source
pub fn compute_check_digit(base: &str, uf: State) -> Option<u8>
Expand description

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.