Function time::parsing::combinator::opt
source ยท pub(crate) fn opt<'a, T>(
parser: impl Fn(&'a [u8]) -> Option<ParsedItem<'a, T>>,
) -> impl Fn(&'a [u8]) -> ParsedItem<'a, Option<T>>
Expand description
Optionally consume an input with a given parser.