1 2 3 4 5 6 7 8 9 10 11 12 13
mod halve; mod ident; mod negate; pub use halve::Halve; pub use ident::Ident; pub use negate::Negate; /// Trait for unary transforms applied lazily during iteration. /// Zero-sized types implementing this get monomorphized (zero runtime cost). pub trait UnaryTransform<In, Out = In> { fn apply(value: In) -> Out; }