Skip to main content

Module ast

Module ast 

Source
Available on (crate features formatting or parsing) and crate feature alloc only.
Expand description

AST for parsing format descriptions.

Structsยง

Modifier ๐Ÿ”’
A modifier for a component.
NestedFormatDescription ๐Ÿ”’
A format description that is nested within another format description.

Enumsยง

Item ๐Ÿ”’
One part of a complete format description.

Functionsยง

parse ๐Ÿ”’
Parse the provided tokens into an AST.
parse_component ๐Ÿ”’
Parse a component. This assumes that the opening bracket has already been consumed.
parse_inner ๐Ÿ”’
Parse the provided tokens into an AST. The const generic indicates whether the resulting Item will be used directly or as part of a NestedFormatDescription.
parse_nested ๐Ÿ”’
Parse a nested format description. The location provided is the most recent one consumed.