realign impls

This commit is contained in:
2022-08-14 00:21:48 +02:00
parent c1fa69f93f
commit b7d57eb6f5
+6 -6
View File
@@ -47,6 +47,12 @@ pub struct Accumulate<I, B, F> {
f: F, f: F,
} }
impl<I, B, F> Accumulate<I, B, F> {
fn new(iter: I, acc: B, f: F) -> Accumulate<I, B, F> {
Accumulate { iter, acc, f }
}
}
impl<I, B, F> fmt::Debug for Accumulate<I, B, F> impl<I, B, F> fmt::Debug for Accumulate<I, B, F>
where where
I: fmt::Debug, I: fmt::Debug,
@@ -60,12 +66,6 @@ where
} }
} }
impl<I, B, F> Accumulate<I, B, F> {
fn new(iter: I, acc: B, f: F) -> Accumulate<I, B, F> {
Accumulate { iter, acc, f }
}
}
impl<I, B, F> Iterator for Accumulate<I, B, F> impl<I, B, F> Iterator for Accumulate<I, B, F>
where where
I: Iterator, I: Iterator,