hamon 0.1.0

A zero-cost, type-level static decorator and pipeline builder.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use hamon::prelude::*;

fn main() {
    let result = Builder::new(10)
        .step(Add { val: 5 })
        .step(|x| x * 2) // Using the blanket closure implementation
        .step(ToStringDec)
        .build();

    println!("Final Result: {}", result);
}