Crates.io | checkluhn |
lib.rs | checkluhn |
version | 0.0.1 |
source | src |
created_at | 2021-03-26 12:23:05.928392 |
updated_at | 2021-03-26 12:23:05.928392 |
description | Validate the Luhn algorithm for the given string |
homepage | https://github.com/marirs/checkluhn-rs |
repository | https://github.com/marirs/checkluhn-rs |
max_upload_size | |
id | 373794 |
size | 4,886 |
Validate the Luhn algorithm for the given string.
[dependencies]
checkluhn = "0.0.1"
and
use checkluhn;
fn main() {
let n = "4111111111111111";
assert!(checkluhn::validate(n));
}
LICENSE: MIT