mirror of
https://github.com/nelsbrock/iter_accumulate.git
synced 2026-08-14 22:16:48 +02:00
realign impls
This commit is contained in:
+6
-6
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user