1 2 3 4 5 6 7 8
use crate::prelude::GenType; pub trait Functor<'a, A>: GenType { #[must_use] fn fmap<F, B: 'a>(self, f: F) -> Self::Type<B> where F: Fn(A) -> B + 'a; }