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

pub fn take_n_while<I: Input, F>(
    input: &mut I,
    num: usize,
    condition: F
) -> ParseResult<I, I::Many> where
    F: FnMut(I::Token) -> bool

Takes at most num inputs as long as condition holds.