[][src]Function pear::parsers::take_n_while

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

Takes at most num inputs as long as condition holds.