[−][src]Function pahs::combinators::count
pub fn count<P, T, E, F, S>(
count: usize,
parser: F
) -> impl FnOnce(&mut ParseDriver<S>, P) -> Progress<P, Vec<T>, E> where
P: Pos,
E: Recoverable,
F: FnMut(&mut ParseDriver<S>, P) -> Progress<P, T, E>,
Runs the specified parser count
times, returning all parsed values in a Vec
.
Don't need the parsed values? See skip_count
.