time::format_description

Module parse

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

Parser for format descriptions.

Re-exportsยง

Modulesยง

  • ast ๐Ÿ”’
    AST for parsing format descriptions.
  • format_item ๐Ÿ”’
    Typed, validated representation of a parsed format description.
  • lexer ๐Ÿ”’
    Lexer for parsing format descriptions.
  • strftime ๐Ÿ”’

Macrosยง

  • validate_version ๐Ÿ”’
    A helper macro to statically validate the version (when used as a const parameter).
  • version ๐Ÿ”’
    A helper macro to make version restrictions simpler to read and write.

Structsยง

  • Error ๐Ÿ”’
    A complete error description.
  • ErrorInner ๐Ÿ”’
    The internal error type.
  • Location ๐Ÿ”’
    A location within a string.
  • Span ๐Ÿ”’
    A start and end point within a string.
  • Spanned ๐Ÿ”’
    A value with an associated Span.
  • Unused ๐Ÿ”’
    A value that may be used in the future, but currently is not.
  • Version ๐Ÿ”’
    A struct that is used to ensure that the version is valid.

Traitsยง

Functionsยง

  • attach_location ๐Ÿ”’
    Attach Location information to each byte in the iterator.
  • Parse a sequence of items from the format description.
  • Parse a sequence of items from the format description.
  • Parse a sequence of items from the format description.
  • unused ๐Ÿ”’
    Indicate that a value is currently unused.