A crate to create a pipeline in Rust.
- Define a pipeline with type in input and type in output
- Use
run
method to run this pipeline
let pipeline = pipeline! {
i32
=> add2
=> div_by_3
=> mul_by_83
;-> f64
};
let result = pipeline.run(3); // ~= 110.6666..
let pipeline = pipeline! {
i32
=> |i: i32| i + 2
=> div_by_3
=> mul_by_83
;-> f64
};
let result = pipeline.run(3); // ~= 110.6666..
cargo build
cargo test