Function time::format_description::parse_owned

source ·
pub fn parse_owned(s: &str) -> Result<OwnedFormatItem, InvalidFormatDescription>
Expand description

Parse a sequence of items from the format description.

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

Unlike parse, this function returns OwnedFormatItem, which owns its contents. This means that there is no lifetime that needs to be handled.