Crate monet

Source

Structs§

CurrencyAmount
Holds an amount of currency. The i128 it holds is expressed in fractions of a unit. CurrencyAmount(AMOUNT_UNIT) makes a unit.
CurrencyCode
Exponent
Tuple struct used to define an amount with an exponent. Useful when used in Mul/Div operations:
Money
A struct containing an amount of money having a certain currency_code. Note that amount contains fractions of a unit. See AMOUNT_UNIT.
Rates

Constants§

AMOUNT_UNIT
How much amount makes a unit

Traits§

Operation
A generic operation trait