feat: Add MoneyBag, a balance across several currencies #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/money-bag"
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?
Where Money panics on a currency mismatch, a bag keeps each currency on
its own books, so accumulating a mixed pile of amounts always succeeds.
Balances are held only while nonzero, leaving one bag per financial
position for Eq to compare.
Ord and PartialOrd for Currency and IsoAlphabeticCode order the bag's
contents by alphabetic code. Width, fill, and alignment now go through
one path shared with Money's rendering.