Function time::format_description::parse::format_item::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.