luhnmod10 1.1.0

Fast and simple in-place implementation of the luhn (mod 10) algorithm.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 4.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • luhnmod10/rust
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • leighmcculloch

Luhn (Mod 10)

Build Status

A fast and simple in-place implementation of the luhn check algorithm in Rust. Implementations in other languages can be found at github.com/luhnmod10.

Usage

Add the crate to your Cargo.toml:

[dependencies]
luhnmod10 = "1.0.0"

Then:

extern crate luhnmod10;
luhnmod10::valid(number);

Contributing

Contributions are welcome! If you can improve the execution time of this implementation without increasing its complexity, please open a pull request. To test your change, run make in the repository to run the tests and the benchmarks.