diff --git a/src/lib.rs b/src/lib.rs index 3e43163..c8d8c0e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,6 +47,12 @@ pub struct Accumulate { f: F, } +impl Accumulate { + fn new(iter: I, acc: B, f: F) -> Accumulate { + Accumulate { iter, acc, f } + } +} + impl fmt::Debug for Accumulate where I: fmt::Debug, @@ -60,12 +66,6 @@ where } } -impl Accumulate { - fn new(iter: I, acc: B, f: F) -> Accumulate { - Accumulate { iter, acc, f } - } -} - impl Iterator for Accumulate where I: Iterator,