Module transformer

Module transformer 

Source
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:

§Author

Hu Haixing

Structs§

ArcConditionalTransformer
ArcConditionalTransformer struct
ArcTransformer
ArcTransformer - thread-safe transformer wrapper
BoxConditionalTransformer
BoxConditionalTransformer struct
BoxTransformer
BoxTransformer - transformer wrapper based on Box<dyn Fn>
RcConditionalTransformer
RcConditionalTransformer struct
RcTransformer
RcTransformer - single-threaded transformer wrapper

Traits§

FnTransformerOps
Extension trait for closures implementing Fn(T) -> R
Transformer
Transformer trait - transforms values from type T to type R
UnaryOperator
UnaryOperator trait - marker trait for unary operators

Type Aliases§

ArcUnaryOperator
Type alias for ArcTransformer<T, T>
BoxUnaryOperator
Type alias for BoxTransformer<T, T>
RcUnaryOperator
Type alias for RcTransformer<T, T>