pub fn parse(
s: &str,
) -> Result<Vec<BorrowedFormatItem<'_>>, InvalidFormatDescription>
Available on crate feature
alloc
and (crate features formatting
or parsing
) 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
.