Function luhnmod10::valid
[−]
[src]
pub fn valid(number: &str) -> bool
Validates if number string is luhn valid. Returns true if the number string is luhn valid, and false otherwise. The number passed to the function must contain only numeric characters otherwise behavior is undefined.