Module std::fmt::parse

Modules

parse_error

Structs

Argument

Representation of an argument specification.

FormatSpec

Specification for the formatting of an argument in the format string.

Parser

The parser structure for interpreting the input format string. This is modelled as an iterator over Piece structures to form a stream of tokens being output.

PluralArm

Structure representing one "arm" of the plural function.

SelectArm

Structure representing one "arm" of the select function.

Enums

Alignment

Enum of alignments which are supported.

Count

A count is used for the precision and width parameters of an integer, and can reference either an argument or a literal integer.

Flag

Various flags which can be applied to format strings, the meaning of these flags is defined by the formatters themselves.

Method

Enum describing all of the possible methods which the formatting language currently supports.

Piece

A piece is a portion of the format string which represents the next part to emit. These are emitted as a stream by the Parser class.

PluralKeyword

Enum of the 5 CLDR plural keywords. There is one more, "other", but that is specially placed in the Plural variant of Method

Position

Enum describing where an argument for a format can be located.