Function pear::parsers::take_n_while
source · pub fn take_n_while<I, F>(
input: &mut Pear<I>,
n: usize,
cond: F
) -> Result<I::Many, I>where
I: Input,
F: FnMut(&I::Token) -> bool,Expand description
Takes at most n tokens as long as cond holds.