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 ๐
- Extended
Century ๐ - IsoWeek
Number ๐ - LastTwo ๐
- Monday
Based ๐Week - Option
Day ๐ - Option
IsoWeek ๐Number - Option
Year ๐ - Ordinal ๐
- Standard
Century ๐ - Standard
Year ๐ - Sunday
Based ๐Week - Year ๐