Tahler / currency-rs

A library providing a way to represent currencies in Rust.
http://tahler.github.io/currency-rs/currency/index.html
MIT License
8 stars 4 forks source link

Currency type is missing some utility traits #11

Open Moxinilian opened 5 years ago

Moxinilian commented 5 years ago

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 commented 5 years ago

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