[go: up one dir, main page]

pub fn parse_owned(s: &str) -> Result<OwnedFormatItem, 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.

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