Skip to main content

check_iccid

Function check_iccid 

Source
pub fn check_iccid(iccid: &str) -> Result<(), DigitsError>
Expand description

Checks that an ICCID has 19 or 20 digits and a valid Luhn check digit.

ยงErrors

Returns what is wrong with the ICCID.