Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency type is missing some utility traits #11

Open
Moxinilian opened this issue Dec 28, 2018 · 1 comment
Open

Currency type is missing some utility traits #11

Moxinilian opened this issue Dec 28, 2018 · 1 comment

Comments

@Moxinilian
Copy link

According to rustc, Currency does not implement the assign set of operation traits, such as std::ops::AddAssign, std::ops::MulAssign, etc.
Those traits are responsible for idioms such as currency1 += currency2.
This should be fairly easy to implement.

@Moxinilian
Copy link
Author

Update: Sum is also missing, which is useful when using currencies with iterator syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant