Function pear::combinators::try_collect
source · pub fn try_collect<C, I, O, P>(input: &mut Pear<I>, p: P) -> Result<C, I>where
C: Collection<O>,
I: Input + Rewind,
P: FnMut(&mut Pear<I>) -> Result<O, I>,Expand description
Parses as many p as possible until EOF is reached or p fails, collecting
them into a C. C may be empty.