pub fn map_input<'a, InputA, InputB, Output, Result, MapFn>(
co: Coroutine<'a, InputB, Output, Result>,
map_fn: MapFn
) -> Coroutine<'a, InputA, Output, Result>where
MapFn: Fn(InputA) -> InputB + Send + Clone + 'a,
Result: Send,
Output: Send,
Expand description
Takes a coroutine that wants a, and ‘lifts’ or maps it into B
Note: This is somewhat backwards than you might expect map to be but is the closest you can get.