checkluhn

Crates.iocheckluhn
lib.rscheckluhn
version0.0.1
sourcesrc
created_at2021-03-26 12:23:05.928392
updated_at2021-03-26 12:23:05.928392
descriptionValidate the Luhn algorithm for the given string
homepagehttps://github.com/marirs/checkluhn-rs
repositoryhttps://github.com/marirs/checkluhn-rs
max_upload_size
id373794
size4,886
SG (marirs)

documentation

README

Check Luhn

Build Status

Validate the Luhn algorithm for the given string.

Requirements

  • Rust 1.40+

Usage

[dependencies]
checkluhn = "0.0.1"

and

use checkluhn;

fn main() {
    let n = "4111111111111111";
    assert!(checkluhn::validate(n));
}

LICENSE: MIT

Commit count: 4

cargo fmt