Function time::format_description::parse::parse

source ·
pub fn parse(
    s: &str
) -> Result<Vec<BorrowedFormatItem<'_>>, InvalidFormatDescription>
Available on (crate features formatting or parsing) and crate feature alloc only.
Expand description

Parse a sequence of items from the format description.

The syntax for the format description can be found in the book.

This function exists for backward compatibility reasons. It is equivalent to calling parse_borrowed::<1>(s). In the future, this function will be deprecated in favor of parse_borrowed.