Expand description
Core functionality for currencies crate, not
including proc macros.
Re-exports§
Modules§
- amount
- Home of the
Amountstruct and supporting types and impls. - currency
- Home of the
Currencytrait, all built-in currencies such asUSD,AAVE,ETH, etc., thedefine_currency!macro, and related/supporting types. - safety
- Home of the
Safetysealed type and its two variantsCheckedandUnchecked. - u256
- Home of the
U256type, which is a heavily modified, wrapped version ofprimitive_types::U256with several custom impls and additional traits fromnum_traitsthat are necessary for currency manipulation but not included by default.
Macros§
- define_
currency - Shorthand for defining a new
Currency. All ISO-4217 currencies already have an entry.