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.
- Error
Inner ๐ - 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ยง
- Spanned
Value ๐ - 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.