Trait higher::Contravariant

source ·
pub trait Contravariant<'a, A> {
    type Target<B>;

    fn contramap<B, F>(self, f: F) -> Self::Target<B>
    where
        F: Fn(B) -> A + 'a
; }
Expand description

A Contravariant functor.

Required Associated Types§

Required Methods§

Implementors§