Skip to content

Validate the Luhn algorithm for the given string

License

Notifications You must be signed in to change notification settings

marirs/checkluhn-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check Luhn

Crates.io Documentation

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

About

Validate the Luhn algorithm for the given string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages