Module mapper_once

Module mapper_once 

Source
Expand description

§MapperOnce Types

Provides Rust implementations of consuming mapper traits similar to Rust’s FnOnce trait, but with value-oriented semantics for functional programming patterns with state consumption.

This module provides the MapperOnce<T, R> trait and one-time use implementation:

§Author

胡海星

Structs§

BoxConditionalMapperOnce
BoxConditionalMapperOnce struct
BoxMapperOnce
BoxMapperOnce - consuming mapper wrapper based on Box<dyn FnOnce>

Traits§

FnMapperOnceOps
Extension trait for closures implementing FnOnce(T) -> R
MapperOnce
MapperOnce trait - consuming mapper that takes ownership