Expand description
§TransformerOnce Types
Provides Rust implementations of consuming transformer traits similar to
Rust’s FnOnce trait, but with value-oriented semantics for functional
programming patterns.
This module provides the TransformerOnce<T, R> trait and one-time use
implementations:
BoxTransformerOnce: Single ownership, one-time use
§Author
Hu Haixing
Structs§
- BoxConditional
Transformer Once - BoxConditionalTransformerOnce struct
- BoxTransformer
Once - BoxTransformerOnce - consuming transformer wrapper based on
Box<dyn FnOnce>
Traits§
- FnTransformer
Once Ops - Extension trait for closures implementing
FnOnce(T) -> R - Transformer
Once - TransformerOnce trait - consuming transformation that takes ownership
- Unary
Operator Once - UnaryOperatorOnce trait - marker trait for one-time use unary operators
Type Aliases§
- BoxUnary
Operator Once - Type alias for
BoxTransformerOnce<T, T>