CovariantFunctor for testing classes
This commit is contained in:
parent
73e9b9efb3
commit
b5d55fe672
@ -22,6 +22,7 @@ pub use self::traced::*;
|
|||||||
pub struct TracedDiagnostic;
|
pub struct TracedDiagnostic;
|
||||||
|
|
||||||
/// Implementation of [`Monad`] for [Traced] objects.
|
/// Implementation of [`Monad`] for [Traced] objects.
|
||||||
|
#[derive(CovariantFunctor)]
|
||||||
pub struct TracedClass;
|
pub struct TracedClass;
|
||||||
|
|
||||||
trait WithTrace: Sized {
|
trait WithTrace: Sized {
|
||||||
|
@ -21,6 +21,7 @@ impl Context for TestContextCounted {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(CovariantFunctor)]
|
||||||
pub struct CountedClass;
|
pub struct CountedClass;
|
||||||
|
|
||||||
pub struct Counted<A> {
|
pub struct Counted<A> {
|
||||||
|
Loading…
Reference in New Issue
Block a user