You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful if you implemented the Sum trait in order to use the .sum() on an iterator over a vec of fractions.
At the moment it fails with the following error:
the trait bound `fraction::fraction::GenericFraction<u64>: std::iter::Sum` is not satisfied
the trait `std::iter::Sum` is not implemented for `fraction::fraction::GenericFraction<u64>`rustc(E0277)
The text was updated successfully, but these errors were encountered:
Hi @eutampieri, thank you for the idea. Fair enough.
I think that would also make sense to add Product implementation.
Would you like to contribute a PR? Ideally that would be an implementation of both traits for Fraction and Decimal and some test coverage for them.
If you don't have time, I'll prepare a patch for the next minor release myself, no pressure :)
It would be useful if you implemented the Sum trait in order to use the .sum() on an iterator over a vec of fractions.
At the moment it fails with the following error:
The text was updated successfully, but these errors were encountered: