Contravariant

Trait Contravariant 

Source
pub trait Contravariant<'a, B>: ReParam<B> {
    // Required method
    fn contramap<F: 'a + Fn(B) -> Self::Param>(self, _: F) -> Self::Output;
}

Required Methods§

Source

fn contramap<F: 'a + Fn(B) -> Self::Param>(self, _: F) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§