checkluhn 0.0.1

Validate the Luhn algorithm for the given string
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 4.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • marirs/checkluhn-rs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • marirs

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