pub trait Mapper<In> {
type Out;
// Required method
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.