remove FnOnce from copy_func
This commit is contained in:
parent
85df7b2092
commit
5297261091
@ -110,7 +110,7 @@ impl<T: Applicative> CopyApplicative for T {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub trait CopyMonad: CopyApplicative {
|
pub trait CopyMonad: CopyApplicative {
|
||||||
fn copy_bind<A: Copy, B: Copy, F: FnOnce(A) -> Self::CF<B>>(
|
fn copy_bind<A: Copy, B: Copy, F: Copy + Fn(A) -> Self::CF<B>>(
|
||||||
fa: Self::CF<A>,
|
fa: Self::CF<A>,
|
||||||
f: F,
|
f: F,
|
||||||
) -> Self::CF<B>;
|
) -> Self::CF<B>;
|
||||||
@ -125,7 +125,7 @@ pub trait CopyMonad: CopyApplicative {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Monad> CopyMonad for T {
|
impl<T: Monad> CopyMonad for T {
|
||||||
fn copy_bind<A: Copy, B: Copy, F: FnOnce(A) -> Self::CF<B>>(
|
fn copy_bind<A: Copy, B: Copy, F: Copy + Fn(A) -> Self::CF<B>>(
|
||||||
fa: Self::CF<A>,
|
fa: Self::CF<A>,
|
||||||
f: F,
|
f: F,
|
||||||
) -> Self::CF<B> {
|
) -> Self::CF<B> {
|
||||||
|
Loading…
Reference in New Issue
Block a user