time::parsing::combinator

Function first_match

source
pub(crate) fn first_match<'a, T>(
    options: impl IntoIterator<Item = (&'a [u8], T)>,
    case_sensitive: bool,
) -> impl FnMut(&'a [u8]) -> Option<ParsedItem<'a, T>>
Expand description

Consume the first matching item, returning its associated value.