time::format_description::parse::strftime

Function parse_strftime_borrowed

Source
pub fn parse_strftime_borrowed(
    s: &str,
) -> Result<Vec<BorrowedFormatItem<'_>>, InvalidFormatDescription>
Expand description

Parse a sequence of items from the strftime format description.

The only heap allocation required is for the Vec itself. All components are bound to the lifetime of the input.