CovariantFunctor

This commit is contained in:
AF 2023-04-27 04:50:35 +00:00
parent 431b5f01f9
commit 4d1202d399

View File

@ -300,3 +300,9 @@ pub trait SharedFunctor: WeakFunctor {
where
Self: 'a;
}
pub trait CovariantFunctor: WeakFunctor {
fn variate<'a: 'b, 'b, A: 'a>(fa: Self::F<'a, A>) -> Self::F<'b, A>
where
Self: 'a;
}