| Crates.io | extended_fizzbuzz |
| lib.rs | extended_fizzbuzz |
| version | 1.0.0 |
| created_at | 2020-09-11 13:44:08.116771+00 |
| updated_at | 2020-09-11 13:44:08.116771+00 |
| description | Configurable FizzBuzz library |
| homepage | https://github.com/TeFiLeDo/extended_fizzbuzz |
| repository | https://github.com/TeFiLeDo/extended_fizzbuzz |
| max_upload_size | |
| id | 287372 |
| size | 18,619 |
Configurable FizzBuzz library.
[dependencies]
extended_fizzbuzz = "1"
use extended_fizzbuzz::{fizzbuzz, Matcher};
fn main() {
let matchers = vec![
Matcher::new(3, "Fizz").expect("Failed to create `3=Fizz` matcher"),
Matcher::new(5, "Buzz").expect("Failed to create `5=Buzz` matcher"),
];
fizzbuzz(1, 100, &matchers).expect("FizzBuzzing failed");
}
See the license file for details.