| Crates.io | luhnmod10 |
| lib.rs | luhnmod10 |
| version | 1.1.0 |
| created_at | 2016-08-06 07:14:34.138533+00 |
| updated_at | 2016-08-06 17:27:53.512635+00 |
| description | Fast and simple in-place implementation of the luhn (mod 10) algorithm. |
| homepage | https://github.com/luhnmod10/rust |
| repository | https://github.com/luhnmod10/rust |
| max_upload_size | |
| id | 5906 |
| size | 4,613 |
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.
Add the crate to your Cargo.toml:
[dependencies]
luhnmod10 = "1.0.0"
Then:
extern crate luhnmod10;
luhnmod10::valid(number);
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.