Module time::format_description::parse::format_item
source · Available on (crate features
formatting
or parsing
) and crate feature alloc
only.Expand description
Typed, validated representation of a parsed format description.
Macros§
- Declare the
Component
struct. - modifier 🔒Declare the various modifiers.
- Get the target type for a given enum.
- Get the target value for a given enum.
Structs§
Enums§
- HourBase 🔒
- Item 🔒A description of how to format and parse one part of a type.
- Padding 🔒
- YearBase 🔒
- YearRepr 🔒
Functions§
- Parse a component from the AST, given its name and modifiers.
- parse 🔒Parse an AST iterator into a sequence of format items.
- Parse a modifier value using
FromStr
. Requires the modifier value to be valid UTF-8.