Expand description
§Transformer Types
Provides Rust implementations of transformer traits for type conversion and value transformation. Transformers consume input values (taking ownership) and produce output values.
This module provides the Transformer<T, R> trait and three
implementations:
BoxTransformer: Single ownership, not cloneableArcTransformer: Thread-safe shared ownership, cloneableRcTransformer: Single-threaded shared ownership, cloneable
§Author
Hu Haixing
Structs§
- ArcConditional
Transformer - ArcConditionalTransformer struct
- ArcTransformer
- ArcTransformer - thread-safe transformer wrapper
- BoxConditional
Transformer - BoxConditionalTransformer struct
- BoxTransformer
- BoxTransformer - transformer wrapper based on
Box<dyn Fn> - RcConditional
Transformer - RcConditionalTransformer struct
- RcTransformer
- RcTransformer - single-threaded transformer wrapper
Traits§
- FnTransformer
Ops - Extension trait for closures implementing
Fn(T) -> R - Transformer
- Transformer trait - transforms values from type T to type R
- Unary
Operator - UnaryOperator trait - marker trait for unary operators
Type Aliases§
- ArcUnary
Operator - Type alias for
ArcTransformer<T, T> - BoxUnary
Operator - Type alias for
BoxTransformer<T, T> - RcUnary
Operator - Type alias for
RcTransformer<T, T>