Function pear::parsers::take_n_while [−][src]
pub fn take_n_while<I: Input, F>(
input: &mut I,
num: usize,
condition: F
) -> Result<I::Many, I> where
F: FnMut(I::Token) -> bool,
Expand description
Takes at most num
inputs as long as condition
holds.