extended_fizzbuzz

Crates.ioextended_fizzbuzz
lib.rsextended_fizzbuzz
version1.0.0
sourcesrc
created_at2020-09-11 13:44:08.116771
updated_at2020-09-11 13:44:08.116771
descriptionConfigurable FizzBuzz library
homepagehttps://github.com/TeFiLeDo/extended_fizzbuzz
repositoryhttps://github.com/TeFiLeDo/extended_fizzbuzz
max_upload_size
id287372
size18,619
Adrian Wannenmacher (TeFiLeDo)

documentation

https://docs.rs/extended_fizzbuzz

README

extended_fizzbuzz Build

Configurable FizzBuzz library.

Installation

[dependencies]
extended_fizzbuzz = "1"

Usage

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");
}

License

See the license file for details.

Authors

Built with

Commit count: 3

cargo fmt