Module steel_cent::formatting [] [src]

Support for formatting of monetary values.

A style of formatting is described by a FormatSpec, which will wrap a Money or SmallMoney in a Display-implementing struct for use in format!, println!, etc.

Structs

FormatSpec

A specification of a currency format.

MoneyDisplay

A Display wrapper for a monetary amount and a FormatSpec. Obtained from FormatSpec::display_for.

STYLE_FRANCE
STYLE_GENERIC

A generic readable style with no short symbol mappings. Example: 1,234.56 USD

STYLE_UK
STYLE_US

Enums

FormatPart

Elements that can appear in a FormatSpec template.

Traits

FormattableMoney

Functions

format