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

pub use self::strftime::parse_strftime_borrowed;
pub use self::strftime::parse_strftime_owned;

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

SpannedValue ๐Ÿ”’
Helper trait to attach a Span to a value.

Functionsยง

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