Skip to main content

zero_or_more

Function zero_or_more 

Source
pub(crate) fn zero_or_more<P>(
    parser: P,
) -> impl for<'a> FnMut(&'a [u8]) -> ParsedItem<'a, ()>
where P: for<'a> Fn(&'a [u8]) -> Option<ParsedItem<'a, ()>>,
Available on crate feature parsing only.
Expand description

Consume zero or more instances of the provided parser. The parser must return the unit value.