Skip to main content

Module format_description

Module format_description 

Source
Available on crate features formatting or parsing only.
Expand description

Description of how types should be formatted and parsed.

The formatted value will be output to the provided writer. Format descriptions can be well-known or obtained by using the format_description! macro or a function listed below.

For examples, see the implementors of Formattable, e.g. well_known::Rfc3339.

Re-exportsยง

pub use borrowed_format_item::BorrowedFormatItem;
pub use borrowed_format_item::BorrowedFormatItem as FormatItem; ๐Ÿ‘ป
pub use owned_format_item::OwnedFormatItem;alloc
pub use self::component::Component;
pub use self::format_description_v3::FormatDescriptionV3;
pub use self::parse::parse;Deprecatedalloc
pub use self::parse::parse_borrowed;alloc
pub use self::parse::parse_owned;alloc
pub use self::parse::parse_strftime_borrowed;alloc
pub use self::parse::parse_strftime_owned;alloc

Modulesยง

__private ๐Ÿ‘ป
Re-exports of internal types for use in macros.
borrowed_format_item ๐Ÿ”’
A format item with borrowed data.
component ๐Ÿ”’
Part of a format description.
format_description_v3 ๐Ÿ”’
A version 3 format description.
modifier
Various modifiers for components.
owned_format_item ๐Ÿ”’ alloc
A format item with owned data.
parse ๐Ÿ”’ alloc
Parser for format descriptions.
well_known
Well-known formats, typically standards.

Enumsยง

FormatDescriptionVersion ๐Ÿ”’
The version of a format description.
Period ๐Ÿ”’
Indicate whether the hour is โ€œamโ€ or โ€œpmโ€.

Type Aliasesยง

StaticFormatDescription
The type output by the format_description! macro.