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 aSpan
to a value.
Functionsยง
- attach_
location ๐AttachLocation
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.