time::format_description::parse::ast

Function parse_nested

Source
fn parse_nested<'a, I: Iterator<Item = Result<Token<'a>, Error>>, const VERSION: usize>(
    last_location: Location,
    tokens: &mut Lexed<I>,
) -> Result<NestedFormatDescription<'a>, Error>
Available on (crate features formatting or parsing) and crate feature alloc only.
Expand description

Parse a nested format description. The location provided is the the most recent one consumed.