rusty_money icon indicating copy to clipboard operation
rusty_money copied to clipboard

Make Money implement Copy

Open robinkrahl opened this issue 3 years ago • 0 comments

Money has two fields, a rust_decimal::Decimal instance and a reference. Both implement Copy, so Money should be able to derive Copy. The Copy documentation recommends that ‘[g]enerally speaking, if your type can implement Copy, it should.’ What do you think about making Money implement Copy? This would make calculations much less awkward.

robinkrahl avatar Mar 15 '21 09:03 robinkrahl