Module time::format_description::parse::format_item
source ยท Expand description
Typed, validated representation of a parsed format description.
Macrosยง
- component_definition ๐Declare the
Component
struct. - modifier ๐Declare the various modifiers.
- target_ty ๐Get the target type for a given enum.
- target_value ๐Get the target value for a given enum.
Structsยง
- Day ๐
- End ๐
- Hour ๐
- Ignore ๐
- Minute ๐
- Month ๐
- OffsetHour ๐
- OffsetMinute ๐
- OffsetSecond ๐
- Ordinal ๐
- Period ๐
- Second ๐
- Subsecond ๐
- UnixTimestamp ๐
- WeekNumber ๐
- Weekday ๐
- Year ๐
Enumsยง
- Component ๐
- HourBase ๐
- Item ๐A description of how to format and parse one part of a type.
- MonthCaseSensitive ๐
- MonthRepr ๐
- Padding ๐
- PeriodCase ๐
- PeriodCaseSensitive ๐
- SignBehavior ๐
- SubsecondDigits ๐
- WeekNumberRepr ๐
- WeekdayCaseSensitive ๐
- WeekdayOneIndexed ๐
- WeekdayRepr ๐
- YearBase ๐
- YearRepr ๐
Functionsยง
- component_from_ast ๐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.