Function count
fn count<I, F>(parser: F, count: usize) -> impl Parser<I, Output = crate::lib::std::vec::Vec<<F as Parser<I>>::Output>, Error = <F as Parser<I>>::Error>
where
I: Clone,
F: Parser<I>
Runs the embedded parser count times, gathering the results in a Vec
Arguments
fThe parser to apply.countHow often to apply the parser.
# use ;
use count;
use tag;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;