Skip to main content

Module formatting

Module formatting 

Source
Available on crate feature formatting only.
Expand description

Formatting for various types.

Re-exportsยง

pub use self::formattable::Formattable;

Modulesยง

component_provider ๐Ÿ”’
formattable ๐Ÿ”’
A trait that can be used to format an item from its components.
iso8601 ๐Ÿ”’
Helpers for implementing formatting for ISO 8601.
metadata ๐Ÿ”’

Structsยง

Output ๐Ÿ”’
An io::Writer that keeps track of the number of bytes written to it.

Constantsยง

MONTH_NAMES ๐Ÿ”’
WEEKDAY_NAMES ๐Ÿ”’

Functionsยง

f64_10_pow_x ๐Ÿ”’
Helper function to obtain 10^x, guaranteeing determinism for x โ‰ค 9. For these cases, the function optimizes to a lookup table. For x โ‰ฅ 10, it falls back to 10_f64.powi(x). The only situation where this would occur is if the user explicitly requests such precision when configuring the ISO 8601 well known format. All other possibilities max out at nine digits.

Type Aliasesยง

Day ๐Ÿ”’
ExtendedCentury ๐Ÿ”’
IsoWeekNumber ๐Ÿ”’
LastTwo ๐Ÿ”’
MondayBasedWeek ๐Ÿ”’
OptionDay ๐Ÿ”’
OptionIsoWeekNumber ๐Ÿ”’
OptionYear ๐Ÿ”’
Ordinal ๐Ÿ”’
StandardCentury ๐Ÿ”’
StandardYear ๐Ÿ”’
SundayBasedWeek ๐Ÿ”’
Year ๐Ÿ”’