mirror of
https://github.com/nelsbrock/iter_accumulate.git
synced 2026-08-14 14:12:12 +02:00
realign impls
This commit is contained in:
+6
-6
@@ -47,6 +47,12 @@ pub struct Accumulate<I, B, 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>
|
||||
where
|
||||
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>
|
||||
where
|
||||
I: Iterator,
|
||||
|
||||
Reference in New Issue
Block a user