[][src]Function luhn::valid

pub fn valid(pan: &str) -> bool

Validates the given string using the Luhn algorithm.

Typically such strings end in a check digit which is chosen in order to make the whole string validate.