time::format_description::parse::format_item

Function parse_from_modifier_value

Source
fn parse_from_modifier_value<T: FromStr>(
    value: &Spanned<&[u8]>,
) -> Result<Option<T>, Error>
Available on (crate features formatting or parsing) and crate feature alloc only.
Expand description

Parse a modifier value using FromStr. Requires the modifier value to be valid UTF-8.