luhnmod10

Crates.ioluhnmod10
lib.rsluhnmod10
version1.1.0
sourcesrc
created_at2016-08-06 07:14:34.138533
updated_at2016-08-06 17:27:53.512635
descriptionFast and simple in-place implementation of the luhn (mod 10) algorithm.
homepagehttps://github.com/luhnmod10/rust
repositoryhttps://github.com/luhnmod10/rust
max_upload_size
id5906
size4,613
Leigh McCulloch (leighmcculloch)

documentation

README

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.

Commit count: 11

cargo fmt