Exchange lacks Hash, ExchangeRate lacks Display #12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two gaps in the traits the types in
src/exchange.rsimplement.Exchangedoes not deriveHash. It derivesClone, Debug, Default, Eq, PartialEq.MoneyBagderivesHash(src/bag.rs:41), andBTreeMap<K, V>: Hashwhere both parameters are, so the derive is available.ExchangeRatedoes not implementDisplay.Money,MoneyBag,Currency,IsoAlphabeticCodeandIsoNumericCodeall do. A rate therefore cannot appearin a user-facing message without hand-assembling it from three getters.
Guideline: C-COMMON-TRAITS.