pub fn rmap<A, B, C, F, Pab, Pac>(b2c: F, profunctor: Pab) -> Pacwhere
A: 'static,
B: 'static,
C: 'static,
F: Fn(B) -> C + 'static,
Pab: Profunctor<A, B, Pro<A, C> = Pac>,Expand description
Maps the output of a Profunctor (covariant mapping).
rmap(f, p) is equivalent to p.dimap(id, f).
If p: P<A,B> and f: B->C, then rmap(f, p) results in P<A,C>.
§Parameters
b2c: The functionB -> Cto post-compose with the profunctor’s output.profunctor: TheProfunctor<A, B>instance.
§Returns
A new profunctor Profunctor::Pro<A, C>.