pipette

Crates.iopipette
lib.rspipette
version0.1.0
sourcesrc
created_at2021-09-14 23:09:38.174507
updated_at2021-09-14 23:09:38.174507
descriptionPolymorphic function pipelines without traits or macros
homepage
repository
max_upload_size
id451519
size7,643
Jonathan Kelley (jkelleyrtp)

documentation

README

Pipette

A small crate for using pipes in Rust.

let input = 1;

let output = pipette::pipe((
    input
    |a| a * 2,
    |a| a * 3,
    |a| a * 4,
    |a| a * 5,
    |a| a * 6,
    |a| a * 7,
    |a| a * 8,
));

assert_eq!(output, 40_320);

Pipette is unique:

  • Supports polymorphic pipeline sizes

  • Integrates well with IDE

  • Does not require macros or custom traits

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Pipette by you, shall be licensed as MIT, without any additional terms or conditions.

Commit count: 0

cargo fmt