Skip to main content

Module format_item

Module 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ยง

component_definition ๐Ÿ”’
Declare the Component struct.
impl_from_ast_component_for ๐Ÿ”’
modifier ๐Ÿ”’
Declare the various modifiers.
parse_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ยง

AstComponent ๐Ÿ”’
HourBase ๐Ÿ”’
Item ๐Ÿ”’
A description of how to format and parse one part of a type.
MonthCaseSensitive ๐Ÿ”’
MonthRepr ๐Ÿ”’
OptionalFormat ๐Ÿ”’
Padding ๐Ÿ”’
PeriodCase ๐Ÿ”’
PeriodCaseSensitive ๐Ÿ”’
SignBehavior ๐Ÿ”’
SubsecondDigits ๐Ÿ”’
TrailingInput ๐Ÿ”’
UnixTimestampPrecision ๐Ÿ”’
WeekNumberRepr ๐Ÿ”’
WeekdayCaseSensitive ๐Ÿ”’
WeekdayOneIndexed ๐Ÿ”’
WeekdayRepr ๐Ÿ”’
YearBase ๐Ÿ”’
YearRange ๐Ÿ”’
YearRepr ๐Ÿ”’

Traitsยง

ModifierValue ๐Ÿ”’

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_from_modifier_value ๐Ÿ”’
Parse a modifier value using FromStr. Requires the modifier value to be valid UTF-8.