.. | ||
.exercism | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
HELP.md | ||
README.md |
Luhn From
Welcome to Luhn From on Exercism's Rust Track.
If you need help running the tests or submitting your code, check out HELP.md
.
Instructions
Before doing this exercise you should probably do the original Luhn exercise. If you have not completed Luhn, you can get it by running the command:
exercism download --exercise=luhn --track=rust
In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied to integers as well.
In this exercise you'll implement the From trait to convert strings, strs and unsigned integers into a Struct that performs the validation.
Source
Created by
- @IanWhitney
Contributed to by
- @coriolinus
- @cwhakes
- @efx
- @ErikSchierboom
- @Insti
- @lutostag
- @mkantor
- @nfiles
- @petertseng
- @rofrol
- @stringparser
- @xakon
- @ZapAnton
Based on
The Rust track maintainers, based on the original Luhn exercise