time::format_description::parse::format_item

Function component_from_ast

Source
fn component_from_ast(
    name: &Spanned<&[u8]>,
    modifiers: &[Modifier<'_>],
) -> Result<Component, Error>
Available on (crate features formatting or parsing) and crate feature alloc only.
Expand description

Parse a component from the AST, given its name and modifiers.