Module transformer_once

Module transformer_once 

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

§Author

Hu Haixing

Structs§

BoxConditionalTransformerOnce
BoxConditionalTransformerOnce struct
BoxTransformerOnce
BoxTransformerOnce - consuming transformer wrapper based on Box<dyn FnOnce>

Traits§

FnTransformerOnceOps
Extension trait for closures implementing FnOnce(T) -> R
TransformerOnce
TransformerOnce trait - consuming transformation that takes ownership
UnaryOperatorOnce
UnaryOperatorOnce trait - marker trait for one-time use unary operators

Type Aliases§

BoxUnaryOperatorOnce
Type alias for BoxTransformerOnce<T, T>