1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # Hamon
//!
//! `hamon` is a high-performance, zero-cost static decorator library.
//!
//! ## Core Philosophy
//! This crate provides a way to compose data processing pipelines that are
//! resolved at compile-time. By leveraging Rust's type system, it eliminates
//! the overhead of dynamic dispatch (`dyn`) while maintaining modularity.
//!
//! ## Quick Start
//! ```rust
//! use hamon::prelude::*;
//!
//! let result = Builder::new(10)
//! .step(|x| x + 5)
//! .build();
//! ```
//!
pub use AllowStep;
/// A trait for types that can transform an input `T` into an output `O`.
///
/// In the Hamon philosophy, this is the 'Edge'—the logic that defines
/// how data is tempered as it passes through the pipeline.
/// Blanket implementation for any closure that matches the signature.
/// This allows for instant, flexible strikes without defining a new struct.