Skip to main content

one_or_more

Function one_or_more 

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

Consume one of or more instances of the provided parser. The parser must produce the unit value.