pub trait Mapper<In> {
    type Out;

    fn apply(&mut self, v: In) -> Self::Out;
}
Expand description

Mapper is a type that can map values from In to Out, You can implement this trait to plmap on types other than closures.

Mapper is essentially to FnMut(In) -> Out, but users can implement it without experimental features.

Required Associated Types

The output type.

Required Methods

Run the mapping function converting In to Out.

Implementors